You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/annotations/annotations-reference.md
+6-6
Original file line number
Diff line number
Diff line change
@@ -382,17 +382,17 @@ class SecretArea {
382
382
383
383
This annotation applies on methods for classes tagged with the `@Provider` annotation. It indicates that the method on this class will resolve a Mutation field.
384
384
The corresponding GraphQL field is added to the GraphQL type(s) following the logic:
385
-
- The type(s) specified in the `targetType` attribute of the `@Mutation` annotation if it's defined.
385
+
- The type(s) specified in the `targetTypes` attribute of the `@Mutation` annotation if it's defined.
386
386
or
387
-
- The type(s) specified in the `targetTypeMutation` attribute of the `@Provider` annotation if it's defined.
387
+
- The type(s) specified in the `targetMutationTypes` attribute of the `@Provider` annotation if it's defined.
388
388
or
389
389
- The root Query type of the default schema (defined in configuration at key `overblog_graphql.definitions.schema.mutation` or `overblog_graphql.definitions.schema.default.mutation`).
390
390
391
391
The class exposing the mutation(s) must be declared as a [service](https://symfony.com/doc/current/service_container.html).
392
392
393
393
Optional attributes:
394
394
395
-
-**targetType** : The GraphQL type(s) to attach the field to. It must be a mutation. (by default, it'll be the root Mutation type of the default schema. see [Default Schema](../definitions/schema.md#default-schema)). You can specify one or multiple target types.
395
+
-**targetTypes** : The GraphQL type(s) to attach the field to. It must be a mutation. (by default, it'll be the root Mutation type of the default schema. see [Default Schema](../definitions/schema.md#default-schema)). You can specify one or multiple target types.
396
396
397
397
Example:
398
398
@@ -440,17 +440,17 @@ Optional attributes:
440
440
441
441
This annotation applies on methods for classes tagged with the `@Provider` annotation. It indicates that on this class a method will resolve a Query field.
442
442
The corresponding GraphQL field is added to the GraphQL type(s) following the logic:
443
-
- The type(s) specified in the `targetType` attribute of the `@Query` annotation if it's defined.
443
+
- The type(s) specified in the `targetTypes` attribute of the `@Query` annotation if it's defined.
444
444
or
445
-
- The type(s) specified in the `targetTypeQuery` attribute of the `@Provider` annotation if it's defined.
445
+
- The type(s) specified in the `targetQueryTypes` attribute of the `@Provider` annotation if it's defined.
446
446
or
447
447
- The root Query type of the default schema (defined in configuration at key `overblog_graphql.definitions.schema.query` or `overblog_graphql.definitions.schema.default.query`).
448
448
449
449
The class exposing the query(ies) must be declared as a [service](https://symfony.com/doc/current/service_container.html).
450
450
451
451
Optional attributes:
452
452
453
-
-**targetType** : The GraphQL type(s) to attach the field to (by default, it'll be the root Query type of the default schema. see [Default Schema](../definitions/schema.md#default-schema)). You can specify one or multiple target types.
453
+
-**targetTypes** : The GraphQL type(s) to attach the field to (by default, it'll be the root Query type of the default schema. see [Default Schema](../definitions/schema.md#default-schema)). You can specify one or multiple target types.
0 commit comments