Jack Hudzenko
04/18/2018, 12:46 PMtsdexter
04/18/2018, 1:08 PMFile
table and then returns the fields (ID, URL
etc) from that insert as the result. You can then query the File
type later to get the file URL and use it in your app.Jack Hudzenko
04/18/2018, 1:11 PMtsdexter
04/18/2018, 1:16 PMFile
type:
mutation saveFile($url: String!, $name: String!) {
createFile(name: $name, url: $url) {
id
name
url
}
}
then use that URL to display and call getFile
query when you want to display it again latertsdexter
04/18/2018, 1:20 PMawait
the upload response which would return the URL and then run the File mutation
from your front end.. but thats a fair bit grosser