Hey, does anyone have any idea of how to get the a...
# prisma-whats-new
k
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
So you want to include the userId as a variable for a create mutation?
a
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