@@ -134,12 +134,12 @@ UPGRADE FROM 0.10 to 0.11
134
134
```
135
135
# ## Type autoMapping and Symfony DI `autoconfigure`
136
136
137
- When using these functionality , type will be accessible only by FQCN in schema definition,
138
- (if class not implementing `Overblog\GraphQLBundle\Definition\Resolver\AliasedInterface`).
137
+ When using these functionalities , type will be accessible only by FQCN in schema definition
138
+ (if class doesn't implement `Overblog\GraphQLBundle\Definition\Resolver\AliasedInterface`).
139
139
So if you want to use the `true` type name don't forget to declare it as an alias using interface.
140
- This change is for a performance mater types are lazy loaded.
140
+ This change is to increase performance, types are lazy- loaded.
141
141
142
- example:
142
+ Here's an example:
143
143
144
144
```php
145
145
<?php
@@ -158,7 +158,7 @@ UPGRADE FROM 0.10 to 0.11
158
158
159
159
** Since 0.11** : Only FQCN ` App\GraphQL\Type\DateTimeType ` is accessible
160
160
161
- here how this can be done in 0.11:
161
+ Here is how this can be done in 0.11:
162
162
163
163
``` php
164
164
<?php
@@ -189,9 +189,9 @@ UPGRADE FROM 0.10 to 0.11
189
189
This could lead to some performances issues or/and wrong types public exposition (in introspection query).
190
190
[ See webonyx/graphql-php documentations for more details] ( http://webonyx.github.io/graphql-php/type-system/schema/#configuration-options )
191
191
192
- ** Since 0.11** Non detect types should be explicitly declare
192
+ ** Since 0.11** Non detect types should be explicitly declared
193
193
194
- here a concrete example:
194
+ Here is a concrete example:
195
195
``` yaml
196
196
Query :
197
197
type : object
@@ -222,13 +222,13 @@ UPGRADE FROM 0.10 to 0.11
222
222
# ...
223
223
interfaces : [FooInterface]
224
224
` ` `
225
- In above example ` Baz` an `Bar` can not be detected by graphql-php during static schema analysis,
226
- an `GraphQL\Error\InvariantViolation` exception will be throw with the following message :
225
+ In above example ` Baz` and `Bar` can not be detected by graphql-php during static schema analysis,
226
+ an `GraphQL\Error\InvariantViolation` exception will be thrown with the following message :
227
227
` ` ` text
228
228
Could not find possible implementing types for FooInterface in schema.
229
229
Check that schema.types is defined and is an array of all possible types in the schema.
230
230
` ` `
231
- here how this can be fix :
231
+ Here is how this can be fixed :
232
232
233
233
` ` ` yaml
234
234
overblog_graphql:
@@ -241,25 +241,25 @@ UPGRADE FROM 0.10 to 0.11
241
241
# ## Events
242
242
243
243
` Overblog\G raphQLBundle\E vent\E xecutorContextEvent::setExecutorContext` method has been removed as `context`
244
- is now a `ArrayObject`. When using `graphql.executor.context` listener the value will now be accessible only
245
- in `context` variables and not in `rootValue`. `context` and `rootValue` has been separate , if you need to
244
+ is now an `ArrayObject`. When using `graphql.executor.context` listener the value will now be accessible only
245
+ in `context` variables and not in `rootValue`. `context` and `rootValue` have been separated , if you need to
246
246
use `rootValue` see [event documentation for more details](Resources/doc/events/index.md).
247
247
248
248
**Before 0.11**
249
249
` context` and `rootValue` were of type `array` with same value so `$context === $info->rootValue` and
250
- ` $context === $value` in root query resolver. That for the reason why uploaded files was accessible in
250
+ ` $context === $value` in root query resolver. Because of this, uploaded files was accessible in
251
251
` $context['request_files']` and `$info->rootValue['request_files']`.
252
252
253
253
**Since 0.11**
254
254
`context` is of type `ArrayObject` and `rootValue` has no typeHint (default : ` null` ) so
255
255
` $context !== $info->rootValue` and `$context !== $value` in root query resolver.
256
- Uploaded files is no more accessible under `$info->rootValue['request_files']` out of the box.
256
+ Uploaded files is no longer accessible under `$info->rootValue['request_files']` out of the box.
257
257
258
258
# ## Change fluent resolvers id
259
259
260
- The use of class name as prefix of fluent resolver id remove the possibility to use same class as 2 different services.
260
+ The use of class name as prefix of fluent resolver id removes the possibility to use same class as 2 different services.
261
261
See issue [#296](https://github.com/overblog/GraphQLBundle/issues/296) for more detail
262
- That's the reason why starting v0.11 we are using service id as prefix (like in Symfony 4.1)...
262
+ Because of this, in v0.11 we are using service id as prefix (like in Symfony 4.1)...
263
263
264
264
Example :
265
265
` ` ` yaml
0 commit comments