is there a way to get the user id of who initiated...
# prisma-whats-new
c
is there a way to get the user id of who initiated that mutation in a function? I basically want to add a createdBy column to every type and set it in a function (to avoid doing it client side)
n
check the included
context
c
@nilan I did, it's just
context: { headers: {} } }
in the pipeline
looks like the only way to do it, is set it client side
n
yea we'll introduce a function context fairly soon: https://github.com/graphcool/feature-requests/issues/219