Skip to content

Commit

Permalink
Merge pull request #83 from bertrandgauthier/master
Browse files Browse the repository at this point in the history
Small correction in examples
  • Loading branch information
vladar committed Jan 6, 2017
2 parents 595ae52 + 1adfe21 commit 5be0944
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions examples/00-hello-world/graphql.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<?php
// Test this using following command
// php -S localhost:8080 ./graphql.php
require_once '../../vendor/autoload.php';
// 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) }"
require_once __DIR__ . '/../../vendor/autoload.php';

use GraphQL\Type\Definition\ObjectType;
use GraphQL\Type\Definition\Type;
Expand Down
4 changes: 2 additions & 2 deletions examples/01-blog/graphql.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
// Test this using following command
// php -S localhost:8080 ./index.php
require_once '../../vendor/autoload.php';
// php -S localhost:8080 ./graphql.php
require_once __DIR__ . '/../../vendor/autoload.php';

use \GraphQL\Examples\Blog\Types;
use \GraphQL\Examples\Blog\AppContext;
Expand Down

0 comments on commit 5be0944

Please sign in to comment.