Skip to content

Commit f4fb1bd

Browse files
authored
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
1 parent 56d6107 commit f4fb1bd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

spec/Section 3 -- Type System.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1548,7 +1548,7 @@ 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
1551+
scalars, enums, lists, or other input objects. This allows arguments to accept
15521552
arbitrarily complex structs.
15531553

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

0 commit comments

Comments
 (0)