QueryOptions

Interface defining options that can be passed to @Query() decorator.


interface QueryOptions extends BaseTypeOptions {
  name?: string
  description?: string
  deprecationReason?: string
  complexity?: Complexity

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

Properties

Property Description
name?: string

Name of the query.

description?: string

Description of the query.

deprecationReason?: string

Query deprecation reason (if deprecated).

complexity?: Complexity

Query complexity options.