mirror of
https://github.com/retailcrm/graphql-php.git
synced 2024-11-22 21:06:05 +03:00
Merge pull request #83 from bertrandgauthier/master
Small correction in examples
This commit is contained in:
commit
5be0944453
@ -1,7 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
// Test this using following command
|
// Test this using following command
|
||||||
// php -S localhost:8080 ./graphql.php
|
// php -S localhost:8080 ./graphql.php &
|
||||||
require_once '../../vendor/autoload.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\ObjectType;
|
||||||
use GraphQL\Type\Definition\Type;
|
use GraphQL\Type\Definition\Type;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
// Test this using following command
|
// Test this using following command
|
||||||
// php -S localhost:8080 ./index.php
|
// php -S localhost:8080 ./graphql.php
|
||||||
require_once '../../vendor/autoload.php';
|
require_once __DIR__ . '/../../vendor/autoload.php';
|
||||||
|
|
||||||
use \GraphQL\Examples\Blog\Types;
|
use \GraphQL\Examples\Blog\Types;
|
||||||
use \GraphQL\Examples\Blog\AppContext;
|
use \GraphQL\Examples\Blog\AppContext;
|
||||||
|
Loading…
Reference in New Issue
Block a user