ctx.db unable to access field defined in schema #802
Answered
by
Weakky
chrisjaimes
asked this question in
General
-
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.
Answered by
Weakky
Jul 20, 2020
Replies: 1 comment
-
Hey, you're mixing your db schema and your GraphQL schema here. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Weakky
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey, you're mixing your db schema and your GraphQL schema here.
fullName
is solely part of your GraphQL schema, you can't therefore expect to query it. If you want to filter viafullName
in the Prisma Client, you need to addfullName
to the corresponding model in your Prisma Schema