You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Have everything else configured correctly for prisma generation. ( )
Run npx prisma generate
See this error
Error: Some errors occurred while generating GraphQL Schema:
Input Object type UserRoleUpdateManyMutationInput must define one or more fields.
Expected Behavior
The type-graphql prisma generator should work successfully with no errors.
Environment (please complete the following information):
OS: Windows
Node: v17.6.0
Package version: v1.1.1
TypeScript version v4.6.4
The text was updated successfully, but these errors were encountered:
Atlinx
changed the title
Prisma models made up of relations breaks prisma integration
Prisma models made up of only relations breaks prisma generator
May 20, 2022
Describe the Bug
If you declare in a
schema.prisma
file models that only contain relations and an id, the type-graphql prisma generator will fail.To Reproduce
schema.prisma
npx prisma generate
Expected Behavior
The type-graphql prisma generator should work successfully with no errors.
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: