Skip to content

Commit

Permalink
Merge pull request #117 from shinderohitt/patch-1
Browse files Browse the repository at this point in the history
Fix commands for hello world example
  • Loading branch information
vladar committed May 16, 2017
2 parents 848f9c3 + 0618363 commit 53edfa0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/00-hello-world/graphql.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php
// Test this using following command
// php -S localhost:8080 ./graphql.php &
// curl http://localhost:8080 -d "query { echo(message: \"Hello\") }"
// 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) }" }'
require_once __DIR__ . '/../../vendor/autoload.php';

use GraphQL\Type\Definition\ObjectType;
Expand Down

0 comments on commit 53edfa0

Please sign in to comment.