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/usage.md
+53Lines changed: 53 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,7 @@ The following attributes can be used:
14
14
-[#[EnumValue]](#enum)
15
15
-[#[Field]](#field)
16
16
-[#[Arg]](#arg)
17
+
-[#[Scalar]](#scalar)
17
18
18
19
See below for more information about each attribute:
19
20
@@ -341,3 +342,55 @@ final readonly class YourType
341
342
|`name`| Set custom name of argument (instead of based on class) |
342
343
|`description`| Set description of the argument, readable in the GraphQL schema |
343
344
|`type`| Set custom return type; it can be:<br/>- A Type (FQCN)<br/>- A `ScalarType` (e.g. `ScalarType::Int`)<br/>- A `ListType` (e.g. `new ListType(ScalarType::Int)`)<br/>- A `NullableType` (e.g. `new NullableType(SomeType::class)`)<br/>- A combination of `ListType` and `NullableType` and a Type FQCN or `ScalarType` <br/>(e.g. `new NullableType(new ListType(ScalarType::String))`) |
0 commit comments