Join Slack
Powered by
Hi, how can i pass additional data when uploading ...
# prisma-whats-new
s
sachins
06/13/2017, 12:57 PM
Hi, how can i pass additional data when uploading a file? example i want to pass userId of user who uploads it
n
nilan
06/13/2017, 1:29 PM
@sachins
right now you can't do that when uploading a file
nilan
06/13/2017, 1:29 PM
but the file upload returns the node if of the new file
nilan
06/13/2017, 1:29 PM
https://github.com/graphcool-examples/react-graphql/blob/master/files-with-apollo/src/components/CreatePage.js#L48-L65
nilan
06/13/2017, 1:30 PM
that way you can call a mutation after the file upload that connects the file node to the user node
s
sachins
06/13/2017, 1:30 PM
Yes, i figured it out. Now, i'm exactly doing that
👍 1
sachins
06/13/2017, 1:30 PM
thanks 🙂
Open in Slack
Previous
Next