Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

GraphQLList

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) },
  })
})
class GraphQLList<T extends GraphQLType> {
constructor(ofType: T);
readonly ofType: T;
get [Symbol.toStringTag](): string;
 
toJSON(): string;
toString(): string;
}

§Type Parameters

§Constructors

§
new GraphQLList(ofType: T)
[src]

§Properties

§
ofType: T
[src]
§
[Symbol.toStringTag]: string readonly
[src]

§Methods

§
toJSON(): string
[src]
§
toString(): string
[src]