Join Slack
Powered by
Is there any way to have the user field populated ...
# prisma-whats-new
j
jschloer
06/14/2017, 4:45 PM
Is there any way to have the user field populated on a create<Item> mutation automatically using the current session user or do I need to provide the user id in the mutation every time?
a
agartha
06/14/2017, 5:04 PM
@jschloer
https://github.com/graphcool/feature-requests/issues/204
j
jschloer
06/14/2017, 5:06 PM
Ok. So once that gets implemented you could then write a function to pull it out of the context and add it to the mutation?
a
agartha
06/14/2017, 5:09 PM
Yes, and there's also a FR somewhere for adding createdBy/updatedBy to createdAt/updatedAt, and have them filled automagically
Open in Slack
Previous
Next