In Dgraph, lists are represented as an unordered set with non-nullable values. The GraphQL spec is ambiguous in parts, so @abhimanyusinghgaur has clarified with the GraphQL WG:
-
Null values are allowed. A field of type
[Int]!
can be set to[1, null, 2, null]
. -
Duplicate values are allowed. A field of type
[Int!]!
can be set to[1, 1, 2, 2]
.
Dgraph is currently not compliant with the above.
Related: