Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • ISchemaBuilder

Implemented by

Index

Methods

build

  • build(): GraphQLSchema
  • Build the final executable schema from all the collected metadata.

    Returns GraphQLSchema

decorateEnum

description

  • description(text: string): PropertyDecorator
  • Attach a description to a field.

    Parameters

    • text: string

    Returns PropertyDecorator

field

input

  • Declare a TypeScript class to be a GraphQL input.

    Parameters

    Returns ClassDecorator

interface

  • Declare a TypeScript class to be a GraphQL interface.

    Type parameters

    • R: GraphQLTypeResolver<any, any>

    Parameters

    Returns ClassDecorator

list

  • list(type: OutputType, args?: undefined | object): PropertyDecorator
  • Declare a class property as a GraphQL list field.

    Parameters

    • type: OutputType
    • Optional args: undefined | object

    Returns PropertyDecorator

mutation

nonNull

  • nonNull(): PropertyDecorator
  • Declare a field to be non-null.

    Returns PropertyDecorator

nonNullItems

  • nonNullItems(): PropertyDecorator
  • Declare a list to have non-null items.

    Returns PropertyDecorator

query

resolve

  • resolve<R>(resolver: R): PropertyDecorator
  • Attach a custom resolver to a GraphQL field.

    Type parameters

    • R: GraphQLFieldResolver<any, any>

    Parameters

    • resolver: R

    Returns PropertyDecorator

scalar

subscription

  • Declare a static class method to be a subscription.

    Type parameters

    • R: GraphQLFieldResolver<any, any>

    Parameters

    Returns MethodDecorator

type

  • Declare a TypeScript class to be a GraphQL type.

    Type parameters

    • R: GraphQLIsTypeOfFn<any, any>

    Parameters

    Returns ClassDecorator

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc