File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 11<?php
22// Test this using following command
3- // php -S localhost:8080 ./graphql.php
4- require_once '../../vendor/autoload.php ' ;
3+ // php -S localhost:8080 ./graphql.php &
4+ // curl http://localhost:8080 -d "query { echo(message: \"Hello\") }"
5+ // curl http://localhost:8080 -d "mutation { sum(x: 2, y: 2) }"
6+ require_once __DIR__ . '/../../vendor/autoload.php ' ;
57
68use GraphQL \Type \Definition \ObjectType ;
79use GraphQL \Type \Definition \Type ;
Original file line number Diff line number Diff line change 11<?php
22// Test this using following command
3- // php -S localhost:8080 ./index .php
4- require_once ' ../../vendor/autoload.php ' ;
3+ // php -S localhost:8080 ./graphql .php
4+ require_once __DIR__ . ' / ../../vendor/autoload.php ' ;
55
66use \GraphQL \Examples \Blog \Types ;
77use \GraphQL \Examples \Blog \AppContext ;
You can’t perform that action at this time.
0 commit comments