-
I have a generated model that creates @TypeGraphQL.field for scalar types but doesn't do the same for class types
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Relation fields require some logic to fetch them. Declaring it in object-type won't automagically populate those fields when you execute the query. That's why those fields are registered by field resolvers of generated relation resolvers: |
Beta Was this translation helpful? Give feedback.
-
I found a workaround for this situation for someone coming here with the same problem just remove the following line inside node-modules/typegraphql-prisma/model-type-class.js line 67
|
Beta Was this translation helpful? Give feedback.
I found a workaround for this situation for someone coming here with the same problem just remove the following line inside node-modules/typegraphql-prisma/model-type-class.js line 67