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: website/versioned_docs/version-3.0/annotations_reference.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ The `@Query` annotation is used to declare a GraphQL query.
14
14
Attribute | Compulsory | Type | Definition
15
15
---------------|------------|------|--------
16
16
name | *no* | string | The name of the query. If skipped, the name of the method is used instead.
17
-
[outputType](custom_output_types.md) | *no* | string | Forces the GraphQL output type of a query.
17
+
[outputType](type_mapping.md) | *no* | string | Forces the GraphQL output type of a query.
18
18
19
19
## @Mutation annotation
20
20
@@ -25,7 +25,7 @@ The `@Mutation` annotation is used to declare a GraphQL mutation.
25
25
Attribute | Compulsory | Type | Definition
26
26
---------------|------------|------|--------
27
27
name | *no* | string | The name of the mutation. If skipped, the name of the method is used instead.
28
-
[outputType](custom_output_types.md) | *no* | string | Forces the GraphQL output type of a query.
28
+
[outputType](type_mapping.md) | *no* | string | Forces the GraphQL output type of a query.
29
29
30
30
## @Type annotation
31
31
@@ -57,7 +57,7 @@ The `@Field` annotation is used to declare a GraphQL field.
57
57
Attribute | Compulsory | Type | Definition
58
58
---------------|------------|------|--------
59
59
name | *no* | string | The name of the field. If skipped, the name of the method is used instead.
60
-
[outputType](custom_output_types.md) | *no* | string | Forces the GraphQL output type of a query.
60
+
[outputType](type_mapping.md) | *no* | string | Forces the GraphQL output type of a query.
61
61
62
62
## @SourceField annotation
63
63
@@ -68,7 +68,7 @@ The `@SourceField` annotation is used to declare a GraphQL field.
68
68
Attribute | Compulsory | Type | Definition
69
69
---------------|------------|------|--------
70
70
name | *yes* | string | The name of the field.
71
-
[outputType](custom_output_types.md) | *no* | string | Forces the GraphQL output type of the field. Otherwise, return type is used.
71
+
[outputType](type_mapping.md) | *no* | string | Forces the GraphQL output type of the field. Otherwise, return type is used.
72
72
logged | *no* | bool | Whether the user must be logged or not to see the field.
73
73
right | *no* | Right annotation | The right the user must have to see the field.
74
74
failWith | *no* | mixed | A value to return if the user is not authorized to see the field. If not specified, the field will not be visible at all to the user.
Copy file name to clipboardExpand all lines: website/versioned_docs/version-4.0/annotations_reference.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ The `@Query` annotation is used to declare a GraphQL query.
14
14
Attribute | Compulsory | Type | Definition
15
15
---------------|------------|------|--------
16
16
name | *no* | string | The name of the query. If skipped, the name of the method is used instead.
17
-
[outputType](custom_output_types.md) | *no* | string | Forces the GraphQL output type of a query.
17
+
[outputType](custom_types.md) | *no* | string | Forces the GraphQL output type of a query.
18
18
19
19
## @Mutation annotation
20
20
@@ -62,7 +62,7 @@ The `@Field` annotation is used to declare a GraphQL field.
62
62
Attribute | Compulsory | Type | Definition
63
63
---------------|------------|------|--------
64
64
name | *no* | string | The name of the field. If skipped, the name of the method is used instead.
65
-
[outputType](custom_output_types.md) | *no* | string | Forces the GraphQL output type of a query.
65
+
[outputType](type_mapping.md) | *no* | string | Forces the GraphQL output type of a query.
66
66
67
67
## @SourceField annotation
68
68
@@ -73,7 +73,7 @@ The `@SourceField` annotation is used to declare a GraphQL field.
73
73
Attribute | Compulsory | Type | Definition
74
74
---------------|------------|------|--------
75
75
name | *yes* | string | The name of the field.
76
-
[outputType](custom_output_types.md) | *no* | string | Forces the GraphQL output type of the field. Otherwise, return type is used.
76
+
[outputType](type_mapping.md) | *no* | string | Forces the GraphQL output type of the field. Otherwise, return type is used.
77
77
phpType | *no* | string | The PHP type of the field (as you would write it in a Docblock)
78
78
annotations | *no* | array<Annotations> | A set of annotations that apply to this field. You would typically used a "@Logged" or "@Right" annotation here.
79
79
@@ -88,7 +88,7 @@ The `@MagicField` annotation is used to declare a GraphQL field that originates
88
88
Attribute | Compulsory | Type | Definition
89
89
---------------|------------|------|--------
90
90
name | *yes* | string | The name of the field.
91
-
[outputType](custom_output_types.md) | *no*(*) | string | The GraphQL output type of the field.
91
+
[outputType](type_mapping.md) | *no*(*) | string | The GraphQL output type of the field.
92
92
phpType | *no*(*) | string | The PHP type of the field (as you would write it in a Docblock)
93
93
annotations | *no* | array<Annotations> | A set of annotations that apply to this field. You would typically used a "@Logged" or "@Right" annotation here.
0 commit comments