@@ -13,7 +13,7 @@ |
||
| 13 | 13 | /** @var ObjectType $rootQueryType */ |
| 14 | 14 | |
| 15 | 15 | $schema = new Schema([ |
| 16 | - 'query' => $rootQueryType |
|
| 16 | + 'query' => $rootQueryType |
|
| 17 | 17 | ]); |
| 18 | 18 | |
| 19 | 19 | (new SchemaValidator())->validate($schema); |
@@ -10,17 +10,17 @@ |
||
| 10 | 10 | require_once __DIR__ . '/../../vendor/autoload.php'; |
| 11 | 11 | |
| 12 | 12 | $schema = new Schema([ |
| 13 | - 'query' => new ObjectType([ |
|
| 13 | + 'query' => new ObjectType([ |
|
| 14 | 14 | 'name' => 'RootQueryType', |
| 15 | 15 | 'fields' => [ |
| 16 | - 'currentTime' => [ |
|
| 16 | + 'currentTime' => [ |
|
| 17 | 17 | 'type' => new StringType(), |
| 18 | 18 | 'resolve' => function () { |
| 19 | - return date('Y-m-d H:ia'); |
|
| 19 | + return date('Y-m-d H:ia'); |
|
| 20 | 20 | } |
| 21 | - ] |
|
| 21 | + ] |
|
| 22 | 22 | ] |
| 23 | - ]) |
|
| 23 | + ]) |
|
| 24 | 24 | ]); |
| 25 | 25 | |
| 26 | 26 | (new SchemaValidator())->validate($schema); |