Hi, I'm new to Prisma. I have a legacy code in Pri...
# orm-help
a
Hi, I'm new to Prisma. I have a legacy code in Prisma 1. I added a new Table/datamodel and then
prisma deploy
after than
prisma generate
, But do I have to write Query and Mutation related
schema.graphql
and
schemaTypes.graphql
by hand? I have alot of modules in code where these files are present and look very much auto gen. But
prisma generate
doesn't seem to have any command for this neither does
graphqlgen
(0.5.0).
r
Hey Ahmad 👋 For generating the
schema.graphql
you would need to use something like Nexus that will generate the
schema.graphql
based on the models that you create.
a
ahh. I understand now. I was confused about this, I thought I only need Prisma and it would take care of whole Server/API side of things.
👍 1
I think in my case it's
graphql
and
graphql-cli
then.