mirror of
https://github.com/retailcrm/graphql-php.git
synced 2024-11-24 22:06:04 +03:00
Fix test commands
This commit is contained in:
parent
848f9c3edf
commit
06183635f5
@ -1,8 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
// Test this using following command
|
// Test this using following command
|
||||||
// php -S localhost:8080 ./graphql.php &
|
// php -S localhost:8080 ./graphql.php &
|
||||||
// curl http://localhost:8080 -d "query { echo(message: \"Hello\") }"
|
// curl http://localhost:8080 -d '{"query": "query { echo(message: \"Hello World\") }" }'
|
||||||
// curl http://localhost:8080 -d "mutation { sum(x: 2, y: 2) }"
|
// curl http://localhost:8080 -d '{"query": "mutation { sum(x: 2, y: 2) }" }'
|
||||||
require_once __DIR__ . '/../../vendor/autoload.php';
|
require_once __DIR__ . '/../../vendor/autoload.php';
|
||||||
|
|
||||||
use GraphQL\Type\Definition\ObjectType;
|
use GraphQL\Type\Definition\ObjectType;
|
||||||
|
Loading…
Reference in New Issue
Block a user