Array
The array type — ordered, typed collections of values.
Declaring the element type
tags: array # any array (elements unconstrained)
tags: [] # same — any array
tags: [string] # array of strings (shorthand)
tags: { array, of: string } # array of strings (keyed form)people: [{ name, age, role }] # array of objects (inline shape)
authors: [$person] # array of a referenced schemaTypeDef
Option
Type
Description
Constraints
Element type (of)
of)len / minLen / maxLen
default
Nested and multidimensional arrays
Optional, nullable & defaults
Input
Result
Implementation status (beta)
Examples
See Also
Last updated
Was this helpful?
