Skip to content

Commit c855454

Browse files
msolomonbenjie
andauthored
3.10 Input Objects - clarify lists are permitted as Input fields (#1068)
* 3.10 Input Objects - clarify lists are permitted as Input fields A minor omission in 3.10 Input Objects confused me briefly today by suggesting lists might not be permitted as the type of an input field. However, they are (and are even used in the examples), so add it in. Alternatively, the kinds of permitted fields could be described explicitly as they are under Field Arguments: https://spec.graphql.org/draft/#sel-GAHZjCZABABDukZ * Update spec/Section 3 -- Type System.md Accept Benjie's suggestion Co-authored-by: Benjie <[email protected]> --------- Co-authored-by: Benjie <[email protected]>
1 parent 586cbed commit c855454

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

spec/Section 3 -- Type System.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1548,8 +1548,9 @@ Fields may accept arguments to configure their behavior. These inputs are often
15481548
scalars or enums, but they sometimes need to represent more complex values.
15491549

15501550
A GraphQL Input Object defines a set of input fields; the input fields are
1551-
either scalars, enums, or other input objects. This allows arguments to accept
1552-
arbitrarily complex structs.
1551+
scalars, enums, other input objects, or any wrapping type whose underlying base
1552+
type is one of those three. This allows arguments to accept arbitrarily complex
1553+
structs.
15531554

15541555
In this example, an Input Object called `Point2D` describes `x` and `y` inputs:
15551556

0 commit comments

Comments
 (0)