Better argument order for curl. Related to #264.

This commit is contained in:
sarukuku 2018-04-04 16:34:05 +03:00
parent f2678b4a10
commit 9b94ac2f06

View File

@ -10,10 +10,10 @@ php -S localhost:8080 ./graphql.php
### Try query ### Try query
``` ```
curl -H "Content-Type: application/json" -d '{"query": "query { echo(message: \"Hello World\") }" }' http://localhost:8080 curl -d '{"query": "query { echo(message: \"Hello World\") }" }' -H "Content-Type: application/json" http://localhost:8080
``` ```
### Try mutation ### Try mutation
``` ```
curl -H "Content-Type: application/json" http://localhost:8080 -d '{"query": "mutation { sum(x: 2, y: 2) }" }' curl -d '{"query": "mutation { sum(x: 2, y: 2) }" }' -H "Content-Type: application/json" http://localhost:8080
``` ```