Join Slack
Powered by
Is there any way to forward every eligible request...
# prisma-whats-new
s
Steve Mu
01/17/2018, 4:06 AM
Is there any way to forward every eligible requests to prisma from resolvers? I would like to front-end easily access the auto-generated APIs. Thanks.
n
nilan
01/17/2018, 9:47 AM
you already checked out this one, right:
https://github.com/graphcool/prisma/tree/master/examples/resolver-forwarding
? Alternatively, depending on your use case, you can also directly connect to Prisma directly from your frontend.
j
jingle
01/19/2018, 9:24 AM
@Steve Mu
is this example working for you? I'm also looking for a way to access the prisma API driectly via the grapql server endpoint
s
Steve Mu
01/19/2018, 2:52 PM
Yes. In order to for the forward to work, we need modify schema.graphql, our own resolver, and run "prisma deploy".
3
Views
Open in Slack
Previous
Next