Skip to content

Commit 41dc593

Browse files
authored
Add explicit example to allow nesting lists within lists (#755)
1 parent 73fc593 commit 41dc593

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

spec/Section 3 -- Type System.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1554,8 +1554,10 @@ Input object type extensions have the potential to be invalid if incorrectly def
15541554
A GraphQL list is a special collection type which declares the type of each
15551555
item in the List (referred to as the *item type* of the list). List values are
15561556
serialized as ordered lists, where each item in the list is serialized as per
1557-
the item type. To denote that a field uses a List type the item type is wrapped
1558-
in square brackets like this: `pets: [Pet]`.
1557+
the item type.
1558+
1559+
To denote that a field uses a List type the item type is wrapped in square brackets
1560+
like this: `pets: [Pet]`. Nesting lists is allowed: `matrix: [[Int]]`.
15591561

15601562
**Result Coercion**
15611563

0 commit comments

Comments
 (0)