diff --git a/examples/03-server/README.md b/examples/03-server/README.md index 0618cf1..4737d6e 100644 --- a/examples/03-server/README.md +++ b/examples/03-server/README.md @@ -10,10 +10,10 @@ php -S localhost:8080 ./graphql.php ### 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 ``` -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 ```