Skip to main content

GraphQLInputObjectTypeImpl

Input Object Type Definition

An input object defines a structured collection of fields which may be supplied to a field argument.

Using NonNull will ensure that a value must be provided by the query

Example:

const GeoPoint = new GraphQLInputObjectTypeImpl({
name: 'GeoPoint',
fields: {
lat: { type: new GraphQLNonNullImpl(GraphQLFloat) },
lon: { type: new GraphQLNonNullImpl(GraphQLFloat) },
alt: { type: GraphQLFloat, defaultValue: 0 },
}
});

Hierarchy

  • GraphQLEntityImpl
    • GraphQLInputObjectTypeImpl

Implements

  • GraphQLInputObjectType

Index

Constructors

constructor

Properties

readonly[GRAPHQL_INPUT_OBJECT_TYPE_SYMBOL]

[GRAPHQL_INPUT_OBJECT_TYPE_SYMBOL]: true = true

readonly[GRAPHQL_VERSION_SYMBOL]

[GRAPHQL_VERSION_SYMBOL]: undefined = undefined

astNode

description

description: Maybe<string>

extensionASTNodes

extensionASTNodes: readonly InputObjectTypeExtensionNode[]

extensions

extensions: Readonly<GraphQLInputObjectTypeExtensions>

name

name: string

Accessors

[toStringTag]

  • get [toStringTag](): string
  • Returns string

Methods

getFields

toConfig

  • toConfig(): GraphQLInputObjectTypeNormalizedConfig
  • Returns GraphQLInputObjectTypeNormalizedConfig

toJSON

  • toJSON(): string
  • Returns string

toString

  • toString(): string
  • Returns string