Skip to main content
class GraphQLList
import { GraphQLList } from "https://deno.land/x/kilatgraphql@16.6.0/mod.ts";

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) },
  })
})

Constructors

new
GraphQLList(ofType: T)

Properties

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

Methods

toJSON(): string
toString(): string