James Hunyar
01/30/2019, 3:51 AMuser
inside of this same resolver, but realized quickly that the GraphQL Error is happening before this resolver. If I'm missing key concepts and there is documentation, I'm just looking to be pointed in that direction, but I feel I've exhausted most of the documentation on the subject without a workable solution.mikedklein
01/30/2019, 3:54 AMconst user
in a try catch I assume your schema has a unique constraint on the user email that is being violated on the prisma server not the yoga server.James Hunyar
01/30/2019, 3:56 AMJames Hunyar
01/30/2019, 3:57 AMmikedklein
01/30/2019, 3:57 AMJames Hunyar
01/30/2019, 3:57 AMmikedklein
01/30/2019, 3:57 AMmikedklein
01/30/2019, 3:59 AMmikedklein
01/30/2019, 4:01 AM{error.message.replace('GraphQL error: ', '')}
mikedklein
01/30/2019, 4:01 AMmikedklein
01/30/2019, 4:01 AMJames Hunyar
01/30/2019, 4:02 AMNoahVlncrt
01/30/2019, 5:36 AMNoahVlncrt
01/30/2019, 5:36 AMNoahVlncrt
01/30/2019, 5:36 AMNoahVlncrt
01/30/2019, 5:36 AMJohn Smeeth
01/30/2019, 5:53 AMJohn Smeeth
01/30/2019, 5:53 AMJohn Smeeth
01/30/2019, 5:53 AMgenerate:
- generator: go-client
output: ./generated/prisma-client/
- generator: graphql-schema
output: ./generated/
John Smeeth
01/30/2019, 5:54 AM./generated/prisma.graphql
to server/schema.graphql
fileJohn Smeeth
01/30/2019, 5:54 AM# import User from "../prisma/generated/prisma.graphql"
then using it as follow
type Query {
users: [User!]!
}
type Mutation {
createUser(email: String!): User
}
John Smeeth
01/30/2019, 5:55 AMgo scripts/gqlgen.go
i gotJohn Smeeth
01/30/2019, 5:55 AMserver/schema.graphql:13: Undefined type User.
exit status 2
John Smeeth
01/30/2019, 6:27 AMbepasquet
01/30/2019, 7:08 AMhuv1k
01/30/2019, 8:38 AMgraphql-playground
release, it should fix most of issues with polling. If there is still problem please create issue Thx and enjoy 🚀Jidé
01/30/2019, 10:52 AMKris Temmerman
01/30/2019, 10:53 AMKris Temmerman
01/30/2019, 10:57 AMOmprakash
01/30/2019, 12:59 PM