uniiverse / graphql-examples

In this repository you'll find some examples of using our GraphQL API
3 stars 2 forks source link

eventCreate mutation - uploading coverPhoto & eventPhoto #2

Open criticalpixel opened 4 years ago

criticalpixel commented 4 years ago

I can see that both coverPhoto & eventPhoto take ImageInputType which requires uploadId of an image. Which means I have to use an already uploaded imageid from a previously created event that was not created via the api.

Right now, if I want to use the api to create events and have cover photo and an event photo, I have to have a hidden draft event which stores various images and then fetch the correct ID from api and parse it to the mutation event, which is not ideal.

Is there a mutation for uploading an Image via the api or an endpoint for uploading images and getting uploadid in response?

Thanks.