Created
February 18, 2019 03:22
-
-
Save aarkerio/3aba6d75869995c6aca1b2f48dfa7d7b to your computer and use it in GitHub Desktop.
Curl upload file graphql Apollo lambda
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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