Grant
09/12/2018, 10:45 AMdivyendu
09/12/2018, 10:47 AMGrant
09/12/2018, 10:47 AMGrant
09/12/2018, 10:48 AMGrant
09/12/2018, 10:48 AMGrant
09/12/2018, 10:48 AMtype User {
id: ID!
firstName: String!
lastName: String!
email: String!
cart: Cart!
subscription: Subscription
}
Grant
09/12/2018, 10:48 AMschema.graphql
Grant
09/12/2018, 10:49 AMconst user = await ctx.db.user({ email })
Grant
09/12/2018, 10:50 AMMessage: Unknown type "UserWhereUniqueInput"
and cannot query field
for each field not included in my maskdivyendu
09/12/2018, 10:51 AMGrant
09/12/2018, 10:51 AM./generated/graphql.js
Grant
09/12/2018, 10:52 AMdivyendu
09/12/2018, 10:53 AMGrant
09/12/2018, 10:58 AMGrant
09/12/2018, 11:00 AM# import Post from './generated/schema.graphql'
?Grant
09/12/2018, 11:00 AMdivyendu
09/12/2018, 11:03 AMdatamodel.graphql
to a GraphQL JS Schema => https://github.com/prisma/prisma/tree/beta/cli/packages/prisma-generate-schemaGrant
09/12/2018, 11:07 AMlawjolla
09/12/2018, 1:51 PMlawjolla
09/12/2018, 1:53 PMGrant
09/14/2018, 12:27 PMPRISMA_ENDPOINT
in my .env
so that the GraphQLServer was pointing to itself on <http://localhost:4000>
. This resulted in some strange behaviour and is why only the fields defined in my user mask schema type were recognised!