Skip to content

mfinley3/multiopqueryerfileupload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MultiOpQueryerFileUpload

go run main.go

Leverages the example serviceUpload starting it in the background (port 5000).
Introspects and then starts the gateway using a Multi Op Queryer (port 4040).

curl localhost:4040/graphql \
  -F operations='{ "query": "mutation ($someFile: Upload!) { upload(file: $someFile) }", "variables": { "someFile": null } }' \
  -F map='{ "0": ["variables.someFile"] }' \
  -F 0=@README.md

Resulting error when using the multiOpQueryer is:

{"data":{},"errors":[{"extensions":null,"message":"no file found in request","path":["upload"]}]}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages