graphql/yoga-server/tutorial/basic/11-summary #2302
Replies: 2 comments 3 replies
-
this was a killer tutorial, props to the author 👏 |
Beta Was this translation helpful? Give feedback.
-
I have finished the basic section and went on to add in codegen so I could get types generated for the resolvers. There was also some confusion with the types for Comments inside of the Link type. The prisma context link model didn't return comment[] in the types, but it actually is returning at run time. I had to create a transform function that added in "comment": [] to the Link type to make the resolver return type happy. This worked but it was confusing in reality since this empty array is being overwritten by the Link sub resolver and did actually return the comments. |
Beta Was this translation helpful? Give feedback.
-
graphql/yoga-server/tutorial/basic/11-summary
GraphQL Yoga Documentation
https://the-guild.dev/graphql/yoga-server/tutorial/basic/11-summary
Beta Was this translation helpful? Give feedback.
All reactions