ctx.db unable to access field defined in schema #802
-
|
I defined a In a extended Query Type in a different file I have the following resolver function It seems that the prisma client |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Hey, you're mixing your db schema and your GraphQL schema here. |
Beta Was this translation helpful? Give feedback.
-
|
Das Problem scheint damit zusammenzuhängen, wie Prisma und Nexus benutzerdefinierte Felder wie |
Beta Was this translation helpful? Give feedback.
Hey, you're mixing your db schema and your GraphQL schema here.
fullNameis solely part of your GraphQL schema, you can't therefore expect to query it. If you want to filter viafullNamein the Prisma Client, you need to addfullNameto the corresponding model in your Prisma Schema