|
@@ -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' |
|
@@ -201,9 +201,9 @@ discard block |
|
|
block discarded – undo |
|
201
|
201
|
['name' => 'String', 'fields' => null], |
|
202
|
202
|
['name' => '__Schema', 'fields' => [['name' => 'queryType', 'args' => []], ['name' => 'mutationType', 'args' => []], ['name' => 'subscriptionType', 'args' => []], ['name' => 'types', 'args' => []], ['name' => 'directives', 'args' => []]]], |
|
203
|
203
|
['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' => []]]], |
|
204
|
|
- ['name' => '__InputValue', 'fields' => [['name' => 'name', 'args' => []], ['name' => 'description', 'args' => []], ['name' => 'type', 'args' => []], ['name' => 'defaultValue', 'args' => []],]], |
|
|
204
|
+ ['name' => '__InputValue', 'fields' => [['name' => 'name', 'args' => []], ['name' => 'description', 'args' => []], ['name' => 'type', 'args' => []], ['name' => 'defaultValue', 'args' => []], ]], |
|
205
|
205
|
['name' => 'Boolean', 'fields' => null], |
|
206
|
|
- ['name' => '__EnumValue', 'fields' => [['name' => 'name', 'args' => []], ['name' => 'description', 'args' => []], ['name' => 'deprecationReason', 'args' => []], ['name' => 'isDeprecated', 'args' => []],]], |
|
|
206
|
+ ['name' => '__EnumValue', 'fields' => [['name' => 'name', 'args' => []], ['name' => 'description', 'args' => []], ['name' => 'deprecationReason', 'args' => []], ['name' => 'isDeprecated', 'args' => []], ]], |
|
207
|
207
|
['name' => '__Field', 'fields' => [['name' => 'name', 'args' => []], ['name' => 'description', 'args' => []], ['name' => 'isDeprecated', 'args' => []], ['name' => 'deprecationReason', 'args' => []], ['name' => 'type', 'args' => []], ['name' => 'args', 'args' => []]]], |
|
208
|
208
|
['name' => '__Subscription', 'fields' => [['name' => 'name', 'args' => []]]], |
|
209
|
209
|
['name' => '__Directive', 'fields' => [['name' => 'name', 'args' => []], ['name' => 'description', 'args' => []], ['name' => 'args', 'args' => []], ['name' => 'onOperation', 'args' => []], ['name' => 'onFragment', 'args' => []], ['name' => 'onField', 'args' => []]]], |
|
@@ -291,7 +291,7 @@ discard block |
|
|
block discarded – undo |
|
291
|
291
|
'id' => ['type' => new IntType()], |
|
292
|
292
|
'name' => ['type' => new IntType()], |
|
293
|
293
|
], |
|
294
|
|
- 'resolveType' => function ($type) { |
|
|
294
|
+ 'resolveType' => function($type) { |
|
295
|
295
|
|
|
296
|
296
|
} |
|
297
|
297
|
]); |
|
@@ -319,7 +319,7 @@ discard block |
|
|
block discarded – undo |
|
319
|
319
|
$unionType = new UnionType([ |
|
320
|
320
|
'name' => 'UnionType', |
|
321
|
321
|
'types' => [$object1, $object2], |
|
322
|
|
- 'resolveType' => function () { |
|
|
322
|
+ 'resolveType' => function() { |
|
323
|
323
|
|
|
324
|
324
|
} |
|
325
|
325
|
]); |
|
@@ -330,7 +330,7 @@ discard block |
|
|
block discarded – undo |
|
330
|
330
|
'args' => [ |
|
331
|
331
|
'id' => ['type' => TypeMap::TYPE_INT] |
|
332
|
332
|
], |
|
333
|
|
- 'resolve' => function () { |
|
|
333
|
+ 'resolve' => function() { |
|
334
|
334
|
return [ |
|
335
|
335
|
'id' => 1, |
|
336
|
336
|
'name' => 'Alex' |
|
@@ -356,7 +356,7 @@ discard block |
|
|
block discarded – undo |
|
356
|
356
|
] |
|
357
|
357
|
]) |
|
358
|
358
|
], |
|
359
|
|
- 'resolve' => function () { |
|
|
359
|
+ 'resolve' => function() { |
|
360
|
360
|
return null; |
|
361
|
361
|
} |
|
362
|
362
|
])); |