Join Slack
Powered by
I'm pretty new to gql, but if I run a mutation tha...
# prisma-whats-new
r
rem
11/03/2017, 2:49 PM
I'm pretty new to gql, but if I run a mutation that requires auth, is there any way to get the current authed user into the mutation - i.e. to say that "this thing belongs to the authed user"?
a
agartha
11/03/2017, 3:01 PM
All Graphcool functions get information about the currently authenticated user in the context. For 'normal' mutations, this is not possible out of the box, but something that can be done using an API Gateway:
https://github.com/kbrandwijk/graphcool-gateway-examples/tree/master/linking-node-to-current-user
r
rem
11/03/2017, 4:14 PM
Thanks.
Open in Slack
Previous
Next