Fix test commands

This commit is contained in:
Rohit Shinde 2017-05-11 13:35:25 +05:30 committed by GitHub
parent 848f9c3edf
commit 06183635f5

View File

@ -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;