Using typescript-resolvers mappers config with prisma models #4101
-
Hi there, Before I posted an issue, I thought I would check here via a discussion to see if there is something I'm not doing correctly. I am attempting to use typescript-resolvers As an example, I am focusing on a type I have defined named 'Task'. From what I can see, the output from graphql-code-generator doesn't fully replace all definitions for I have written my question/confusion using the line in bold below. I was hoping someone could please help me understand how mappers works and if there is something I am missing? Here is an excerpt from my generated prisma models (
Here is the relevant section of my graphql type definitions I am deliberately omitting a number of fields in the definition of
Here is the relevant section of my
When I run generate, the result I get in my
^^^^^^ I expected this definition for
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Here you already have
|
Beta Was this translation helpful? Give feedback.
typescript
package creates definitions according to your GraphQL Schema. Models defined inmappers
are used intypescript-resolvers
.Here you already have
task
in resolvers as I see below.