List Value
ListValue [Const] :
[]
[Value [?Const] list]
Lists are ordered sequences of values wrapped in square‐brackets[ ]
. The values of a List literal may be any value literal or variable (ex.[1, 2, 3]
).
Commas are optional throughout GraphQL so trailing commas are allowed and repeated commas do not represent missing values.
Semantics
ListValue : []
Return a new empty list value.
ListValue : [Value list]
Let inputList be a new empty list value.
For each Value list
Let value be the result of evaluating Value.
Append value to inputList.
Return inputList