mirror of
https://github.com/retailcrm/graphql-php.git
synced 2025-04-01 19:56:10 +03:00
Small correction in examples
This commit is contained in:
parent
595ae52e85
commit
8df665610b
2 changed files with 5 additions and 3 deletions
|
@ -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;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
// Test this using following command
|
||||
// php -S localhost:8080 ./index.php
|
||||
require_once '../../vendor/autoload.php';
|
||||
require_once __DIR__ . '/../../vendor/autoload.php';
|
||||
|
||||
use \GraphQL\Examples\Blog\Types;
|
||||
use \GraphQL\Examples\Blog\AppContext;
|
||||
|
|
Loading…
Add table
Reference in a new issue