when following the tutorial to build a graphql ser...
# orm-help
t
when following the tutorial to build a graphql server with graphql-yoga, i understand it's adding a layer that defines what operations are exposed in the API to the client, which require tons of time to sit down and write out each operation that should be exposed for each type when what i want is actually to expose all of it first and then later think about what to remove. is there an easy way to do this?
s
No and, in my opinion, the approach that you are suggesting is not a secure. You are much better off taking the time to determine exactly how users will interact with your API.
n
@timm you can use
forwardTo
from your
prisma-binding
t
@nilan this might be a stupid question.. but do you know why my mutation for deleteUser would work for the prisma service layer but not at the prisma server (2nd) layer? i am using forwardTo
n
no, I don't know 😛 can you share more about your situation in a new Forum question? 🙂