|
@@ -136,7 +136,7 @@ discard block |
|
|
block discarded – undo |
|
136
|
136
|
'description' => 'latest description', |
|
137
|
137
|
'deprecationReason' => 'for test', |
|
138
|
138
|
'isDeprecated' => true, |
|
139
|
|
- 'resolve' => function () { |
|
|
139
|
+ 'resolve' => function() { |
|
140
|
140
|
return [ |
|
141
|
141
|
'id' => 1, |
|
142
|
142
|
'name' => 'Alex' |
|
@@ -202,9 +202,9 @@ discard block |
|
|
block discarded – undo |
|
202
|
202
|
['name' => 'String', 'fields' => null], |
|
203
|
203
|
['name' => '__Schema', 'fields' => [['name' => 'queryType', 'args' => []], ['name' => 'mutationType', 'args' => []], ['name' => 'subscriptionType', 'args' => []], ['name' => 'types', 'args' => []], ['name' => 'directives', 'args' => []]]], |
|
204
|
204
|
['name' => '__Type', 'fields' => [['name' => 'name', 'args' => []], ['name' => 'kind', 'args' => []], ['name' => 'description', 'args' => []], ['name' => 'ofType', 'args' => []], ['name' => 'inputFields', 'args' => []], ['name' => 'enumValues', 'args' => [['defaultValue' => 'false']]], ['name' => 'fields', 'args' => [['defaultValue' => 'false']]], ['name' => 'interfaces', 'args' => []], ['name' => 'possibleTypes', 'args' => []]]], |
|
205
|
|
- ['name' => '__InputValue', 'fields' => [['name' => 'name', 'args' => []], ['name' => 'description', 'args' => []], ['name' => 'isDeprecated', 'args' => []], ['name' => 'deprecationReason', 'args' => []], ['name' => 'type', 'args' => []], ['name' => 'defaultValue', 'args' => []],]], |
|
|
205
|
+ ['name' => '__InputValue', 'fields' => [['name' => 'name', 'args' => []], ['name' => 'description', 'args' => []], ['name' => 'isDeprecated', 'args' => []], ['name' => 'deprecationReason', 'args' => []], ['name' => 'type', 'args' => []], ['name' => 'defaultValue', 'args' => []], ]], |
|
206
|
206
|
['name' => 'Boolean', 'fields' => null], |
|
207
|
|
- ['name' => '__EnumValue', 'fields' => [['name' => 'name', 'args' => []], ['name' => 'description', 'args' => []], ['name' => 'deprecationReason', 'args' => []], ['name' => 'isDeprecated', 'args' => []],]], |
|
|
207
|
+ ['name' => '__EnumValue', 'fields' => [['name' => 'name', 'args' => []], ['name' => 'description', 'args' => []], ['name' => 'deprecationReason', 'args' => []], ['name' => 'isDeprecated', 'args' => []], ]], |
|
208
|
208
|
['name' => '__Field', 'fields' => [['name' => 'name', 'args' => []], ['name' => 'description', 'args' => []], ['name' => 'isDeprecated', 'args' => []], ['name' => 'deprecationReason', 'args' => []], ['name' => 'type', 'args' => []], ['name' => 'args', 'args' => []]]], |
|
209
|
209
|
['name' => '__Directive', 'fields' => [['name' => 'name', 'args' => []], ['name' => 'description', 'args' => []], ['name' => 'args', 'args' => []], ['name' => 'locations', 'args' => []]]], |
|
210
|
210
|
['name' => '__DirectiveLocation', 'fields' => null], |
|
@@ -292,7 +292,7 @@ discard block |
|
|
block discarded – undo |
|
292
|
292
|
'id' => ['type' => new IntType()], |
|
293
|
293
|
'name' => ['type' => new IntType()], |
|
294
|
294
|
], |
|
295
|
|
- 'resolveType' => function ($type) { |
|
|
295
|
+ 'resolveType' => function($type) { |
|
296
|
296
|
|
|
297
|
297
|
} |
|
298
|
298
|
]); |
|
@@ -320,7 +320,7 @@ discard block |
|
|
block discarded – undo |
|
320
|
320
|
$unionType = new UnionType([ |
|
321
|
321
|
'name' => 'UnionType', |
|
322
|
322
|
'types' => [$object1, $object2], |
|
323
|
|
- 'resolveType' => function () { |
|
|
323
|
+ 'resolveType' => function() { |
|
324
|
324
|
|
|
325
|
325
|
} |
|
326
|
326
|
]); |
|
@@ -331,7 +331,7 @@ discard block |
|
|
block discarded – undo |
|
331
|
331
|
'args' => [ |
|
332
|
332
|
'id' => ['type' => TypeMap::TYPE_INT] |
|
333
|
333
|
], |
|
334
|
|
- 'resolve' => function () { |
|
|
334
|
+ 'resolve' => function() { |
|
335
|
335
|
return [ |
|
336
|
336
|
'id' => 1, |
|
337
|
337
|
'name' => 'Alex' |
|
@@ -357,7 +357,7 @@ discard block |
|
|
block discarded – undo |
|
357
|
357
|
] |
|
358
|
358
|
]) |
|
359
|
359
|
], |
|
360
|
|
- 'resolve' => function () { |
|
|
360
|
+ 'resolve' => function() { |
|
361
|
361
|
return null; |
|
362
|
362
|
} |
|
363
|
363
|
])); |