FieldOptions


interface FieldOptions<T = any> extends BaseTypeOptions {
  name?: string
  description?: string
  deprecationReason?: string
  complexity?: Complexity
  middleware?: FieldMiddleware[]

  // inherited from graphql/packages/graphql/lib/BaseTypeOptions
  nullable?: boolean | NullableList
  defaultValue?: T
}

Properties

Property Description
name?: string

Name of the field.

description?: string

Description of the field.

deprecationReason?: string

Field deprecation reason (if deprecated).

complexity?: Complexity

Field complexity options.

middleware?: FieldMiddleware[]

Array of middleware to apply.