@@ -30,8 +30,8 @@ public function __construct(array $config)
3030 Utils::invariant (!empty ($ config ['name ' ]), 'Every type is expected to have name ' );
3131
3232 Config::validate ($ config , [
33- 'name ' => Config::STRING | Config::REQUIRED ,
34- 'nodeType ' => Config::OBJECT_TYPE | Config::CALLBACK | Config::REQUIRED ,
33+ 'name ' => Config::STRING | Config::REQUIRED ,
34+ 'nodeType ' => Config::OBJECT_TYPE | Config::CALLBACK | Config::REQUIRED ,
3535 'edgeFields ' => Config::arrayOf (
3636 FieldDefinition::getDefinition (),
3737 Config::KEY_AS_NAME
@@ -41,7 +41,7 @@ public function __construct(array $config)
4141 Config::KEY_AS_NAME
4242 ),
4343 'resolveCursor ' => Config::CALLBACK ,
44- 'resolveNode ' => Config::CALLBACK ,
44+ 'resolveNode ' => Config::CALLBACK ,
4545 ]);
4646
4747 if (!self ::$ pageInfoType instanceof PageInfoType) {
@@ -60,37 +60,37 @@ public function __construct(array $config)
6060 $ resolveCursor = empty ($ config ['resolveCursor ' ]) ? null : $ config ['resolveCursor ' ];
6161
6262 $ edgeType = new EdgeType ([
63- 'name ' => $ name .'Edge ' ,
63+ 'name ' => $ name .'Edge ' ,
6464 'description ' => 'An edge in a connection. ' ,
65- 'fields ' => $ this ->getFieldsWithDefaults (
65+ 'fields ' => $ this ->getFieldsWithDefaults (
6666 $ edgeFields ,
6767 [
6868 'node ' => [
69- 'type ' => $ nodeType ,
70- 'resolve ' => $ resolveNode ,
69+ 'type ' => $ nodeType ,
70+ 'resolve ' => $ resolveNode ,
7171 'description ' => 'The item at the end of the edge. ' ,
7272 ],
7373 'cursor ' => [
74- 'type ' => Type::nonNull (Type::string ()),
75- 'resolve ' => $ resolveCursor ,
74+ 'type ' => Type::nonNull (Type::string ()),
75+ 'resolve ' => $ resolveCursor ,
7676 'description ' => 'A cursor for use in pagination. ' ,
7777 ],
7878 ]
7979 ),
8080 ]);
8181
8282 parent ::__construct ([
83- 'name ' => $ name .'Connection ' ,
83+ 'name ' => $ name .'Connection ' ,
8484 'description ' => 'A connection to a list of items. ' ,
85- 'fields ' => $ this ->getFieldsWithDefaults (
85+ 'fields ' => $ this ->getFieldsWithDefaults (
8686 $ connectionFields ,
8787 [
8888 'pageInfo ' => [
89- 'type ' => Type::nonNull (self ::$ pageInfoType ),
89+ 'type ' => Type::nonNull (self ::$ pageInfoType ),
9090 'description ' => 'Information to aid in pagination. ' ,
9191 ],
9292 'edges ' => [
93- 'type ' => Type::listOf ($ edgeType ),
93+ 'type ' => Type::listOf ($ edgeType ),
9494 'description ' => 'Information to aid in pagination. ' ,
9595 ],
9696 ]
0 commit comments