We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 848f9c3 + 0618363 commit 53edfa0Copy full SHA for 53edfa0
examples/00-hello-world/graphql.php
@@ -1,8 +1,8 @@
1
<?php
2
// Test this using following command
3
// php -S localhost:8080 ./graphql.php &
4
-// curl http://localhost:8080 -d "query { echo(message: \"Hello\") }"
5
-// curl http://localhost:8080 -d "mutation { sum(x: 2, y: 2) }"
+// curl http://localhost:8080 -d '{"query": "query { echo(message: \"Hello World\") }" }'
+// curl http://localhost:8080 -d '{"query": "mutation { sum(x: 2, y: 2) }" }'
6
require_once __DIR__ . '/../../vendor/autoload.php';
7
8
use GraphQL\Type\Definition\ObjectType;
0 commit comments