Create an array type containing elements of the specified type.
Arrays are encoded with a length prefix followed by each element. In delta encoding, only changed elements are transmitted.
The element type
The type of elements in the array
const Team = ObjectType("Team", { members: ArrayType(StringType()), scores: ArrayType(IntType({ min: 0 })), positions: ArrayType(ReferenceType(Position)),}); Copy
const Team = ObjectType("Team", { members: ArrayType(StringType()), scores: ArrayType(IntType({ min: 0 })), positions: ArrayType(ReferenceType(Position)),});
Create an array type containing elements of the specified type.
Arrays are encoded with a length prefix followed by each element. In delta encoding, only changed elements are transmitted.