Skip to main content
Module

x/graphql_deno/lib/index.js>GraphQLList

GraphQL-JS ported to Deno
Latest
function GraphQLList
import { GraphQLList } from "https://deno.land/x/graphql_deno@v15.0.0/lib/index.js";

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: GraphQLList(PersonType) },
    children: { type: GraphQLList(PersonType) },
  })
})