When starting out with GraphQL and Prisma, the amount of .graphql
-files you're working with can be confusing. Yet, it's crucial to understand what the role of each of them is.
Looking only at Prisma, there are two .graphql
-files that are relevant:
- The data model containing the model definitions for your service's APIs, typically called
datamodel.graphql
. - The Prisma database schema defining the actual CRUD/realtime operations of the service's API, typically called
prisma.graphql
.