@@ -6,7 +6,7 @@ discard block |
||
| 6 | 6 | use Youshido\GraphQL\Type\Object\ObjectType; |
| 7 | 7 | use Youshido\GraphQL\Type\Scalar\StringType; |
| 8 | 8 | |
| 9 | -require_once __DIR__ . '/../../vendor/autoload.php'; |
|
| 9 | +require_once __DIR__.'/../../vendor/autoload.php'; |
|
| 10 | 10 | |
| 11 | 11 | $processor = new Processor(); |
| 12 | 12 | $processor->setSchema(new Schema([ |
@@ -24,4 +24,4 @@ discard block |
||
| 24 | 24 | ])); |
| 25 | 25 | |
| 26 | 26 | $processor->processRequest('{ currentTime }'); |
| 27 | -echo json_encode($processor->getResponseData()) . "\n"; |
|
| 27 | +echo json_encode($processor->getResponseData())."\n"; |
|
@@ -9,15 +9,15 @@ |
||
| 9 | 9 | use Youshido\GraphQL\Type\Scalar\StringType; |
| 10 | 10 | |
| 11 | 11 | |
| 12 | -require_once __DIR__ . '/../../vendor/autoload.php'; |
|
| 13 | -require_once __DIR__ . '/inline-schema.php'; |
|
| 12 | +require_once __DIR__.'/../../vendor/autoload.php'; |
|
| 13 | +require_once __DIR__.'/inline-schema.php'; |
|
| 14 | 14 | /** @var ObjectType $rootQueryType */ |
| 15 | 15 | |
| 16 | 16 | $processor = new Processor(); |
| 17 | 17 | $processor->setSchema(new Schema([ |
| 18 | 18 | 'query' => $rootQueryType |
| 19 | 19 | ])); |
| 20 | -$payload = '{ latestPost { title(truncated: true), summary } }'; |
|
| 20 | +$payload = '{ latestPost { title(truncated: true), summary } }'; |
|
| 21 | 21 | |
| 22 | 22 | $processor->processRequest($payload); |
| 23 | -echo json_encode($processor->getResponseData()) . "\n"; |
|
| 24 | 23 | \ No newline at end of file |
| 24 | +echo json_encode($processor->getResponseData())."\n"; |
|
| 25 | 25 | \ No newline at end of file |