Skip to main content

GraphQLList <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

Constructors

Properties

Accessors

Methods

Constructors

constructor

Properties

readonlyofType

ofType: T

Accessors

[toStringTag]

  • get [toStringTag](): string
  • Returns string

Methods

toJSON

  • toJSON(): string
  • Returns string

toString

  • toString(): string
  • Returns string