thanks for answer. I get it yesterday, when start do it, not read) But this good idea, I think: we have slightly different between our schema.gql and schema.prisma. Cause we would be generate prisma use our ObjectType objects. it would be pretty nice.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
and the main question. can I use schema.gql file auto generated when I use code first approach as schema.prisma???
I am not sure if I understand your question.
You use Graphql code first approach to generate your graphql api which generates the
schema.gql
.The
schema.prisma
describes your database and is separate to the graphql endpoint. You have to write your prisma schema your self.That means you can use both at the same time. Code first to generate
schema.gql
and write the databaseschema.prisma
manually.Does that answer your question?
thanks for answer. I get it yesterday, when start do it, not read) But this good idea, I think: we have slightly different between our schema.gql and schema.prisma. Cause we would be generate prisma use our ObjectType objects. it would be pretty nice.