Skip to content

Instantly share code, notes, and snippets.

@aarkerio
Created February 18, 2019 03:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aarkerio/3aba6d75869995c6aca1b2f48dfa7d7b to your computer and use it in GitHub Desktop.
Save aarkerio/3aba6d75869995c6aca1b2f48dfa7d7b to your computer and use it in GitHub Desktop.
Curl upload file graphql Apollo lambda
curl localhost:3000/graphql \
-F operations='{ "query": "mutation ($file: Upload!) { singleUpload(file: $file) { filename } }" }' \
-F map='{ "0": ["variables.file"] }' -F 0=@/home/mmontoya/Bilder/mydog12.jpg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment