Skip to content

Instantly share code, notes, and snippets.

@nickretallack
Last active October 12, 2015 03:21
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 nickretallack/f28cd794e9fa8f5f7b21 to your computer and use it in GitHub Desktop.
Save nickretallack/f28cd794e9fa8f5f7b21 to your computer and use it in GitHub Desktop.
curl copy of a mutation?
curl 'http://localhost:4000/graphql' -X POST -H 'Pragma: no-cache' -H 'Origin: http://localhost:4000' -H 'Accept-Encoding: gzip, deflate' -H 'Accept-Language: en-US,en;q=0.8' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36' -H 'content-type: application/json' -H 'Accept: */*' -H 'Cache-Control: no-cache' -H 'Referer: http://localhost:4000/?' -H 'Connection: keep-alive' -H 'Content-Length: 280' --compressed
{
"data": {
"uploadFileByUrl": null
},
"errors": [
{
"message": "Unknown affix declaration: [object Object]",
"locations": [
{
"line": 1,
"column": 64
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment