ClassesGraphQLListOn this pageGraphQLList <T>List Type Wrapper A list is a wrapping type which points to another type. Lists are often created within the context of defining the fields of an object type. Example: const PersonType = new GraphQLObjectType({ name: 'Person', fields: () => ({ parents: { type: new GraphQLList(PersonType) }, children: { type: new GraphQLList(PersonType) }, })})Index ConstructorsconstructorPropertiesofTypeAccessors[toStringTag]MethodstoJSONtoStringConstructors constructornew GraphQLList<T>(ofType: T): GraphQLList<T>Type parametersT: GraphQLTypeParametersofType: TReturns GraphQLList<T>Properties readonlyofTypeofType: TAccessors [toStringTag]get [toStringTag](): stringReturns stringMethods toJSONtoJSON(): stringReturns stringtoStringtoString(): stringReturns string
List Type Wrapper
A list is a wrapping type which points to another type. Lists are often created within the context of defining the fields of an object type.
Example: