I’m having an issue understanding why I can’t dire...
# orm-help
w
I’m having an issue understanding why I can’t directly import the generated graphql mutations, queries, and types into my graphql-yoga server
👍 1
I’m importing Mutation.createUser into my schemal.graphql file from my generated prisma graphql file
but when I run my yoga server
and try to run the createUser mutation, I’m getting
Copy code
Cannot return null for non-nullable field Mutation.createUser
h
you can only import types I guess
not mutation, you can use forwardTo from prisma-bindings to forward though
w
I was able to figure it out
I used prisma-import to import the Mutation or Query from the prisma generated file.
Saves so much time!
h
Ok great to know😀