use nexus-prisma without prisma client

use nexus-prisma without prisma client


0

I am planning on using prisma for building the database and migrations, I am not going to use prisma client as there are some limitations I am hitting since prisma does not use native joins. I also want to use nexus prisma to auto generate types for my graphql api. However, I see that each time I do npx prisma generate, prisma client is also auto generated. I am using google cloud to deploy my project and plan to use cloudbuild.yml with one of the steps being to apply prisma migrations and compile ts to js.

I want to get rid of the extra prisma stuff that I do not need but I am not sure to go about it. Would I copy nexus-prisma in node_modules to my final build? Run npm remove ...?

I have tried the following:

Uninstalled @prisma/client but nexus-prisma depends on it.

removed generate client from schema.prisma but got an error that nexus-prisma relies on generate client

New contributor

luis-amarquez is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.


Load 7 more related questions


Show fewer related questions

0



Leave a Reply

Your email address will not be published. Required fields are marked *