Skip to content

Commit 53edfa0

Browse files
authored
Merge pull request #117 from shinderohitt/patch-1
Fix commands for hello world example
2 parents 848f9c3 + 0618363 commit 53edfa0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/00-hello-world/graphql.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22
// Test this using following command
33
// 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) }"
4+
// curl http://localhost:8080 -d '{"query": "query { echo(message: \"Hello World\") }" }'
5+
// curl http://localhost:8080 -d '{"query": "mutation { sum(x: 2, y: 2) }" }'
66
require_once __DIR__ . '/../../vendor/autoload.php';
77

88
use GraphQL\Type\Definition\ObjectType;

0 commit comments

Comments
 (0)