Testing Upload scalar type in graphql-playground

1.9k views Asked by At

Ex:

mutation {
  uploadMediaObject(input: {file: "C:/Users/ASUS/Pictures/bmw.png"}) {
   mediaObject {id contentUrl}
  }
}

I want to test that mutation using graphql playground. So how to put a file in there?

1

There are 1 answers

1
Tiavina MIchael On

I found out that neither GraphiQL nor GraphQL Playground support file upload. So my solution is using Altair