Skip to main content
Latest
class GraphQLInputObjectType
import { GraphQLInputObjectType } from "https://deno.land/x/kilatgraphql@16.6.0-1/mod.ts";

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 GraphQLInputObjectType({
  name: 'GeoPoint',
  fields: {
    lat: { type: new GraphQLNonNull(GraphQLFloat) },
    lon: { type: new GraphQLNonNull(GraphQLFloat) },
    alt: { type: GraphQLFloat, defaultValue: 0 },
  }
});

Constructors

new
GraphQLInputObjectType(config: Readonly<GraphQLInputObjectTypeConfig>)

Properties

private
_fields
description: Maybe<string>
extensionASTNodes: ReadonlyArray<InputObjectTypeExtensionNode>
extensions: Readonly<GraphQLInputObjectTypeExtensions>
name: string
readonly
[Symbol.toStringTag]: string

Methods

toConfig(): GraphQLInputObjectTypeNormalizedConfig
toJSON(): string
toString(): string