Join Slack
Powered by
Hey, does anyone have any idea of how to get the a...
# prisma-whats-new
k
kuka
11/02/2017, 3:42 AM
Hey, does anyone have any idea of how to get the authenticated
$userId
on default mutations like
create[Type]
? Or at least limit mutation calls with a permission so that no user can submit a mutation with other user’s
ID
?
m
max
11/02/2017, 6:24 AM
So you want to include the userId as a variable for a create mutation?
a
agartha
11/02/2017, 11:00 AM
Probably not what you're looking for, but I use a Gateway to do this:
https://github.com/kbrandwijk/graphcool-gateway-examples/tree/master/linking-node-to-current-user
👍 1
2
Views
Open in Slack
Previous
Next