Skip to main content
Latest
class GraphQLInputObjectType
import { GraphQLInputObjectType } from "https://deno.land/x/graphql_deno@v15.0.0/lib/index.js";

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: GraphQLNonNull(GraphQLFloat) },
    lon: { type: GraphQLNonNull(GraphQLFloat) },
    alt: { type: GraphQLFloat, defaultValue: 0 },
  }
});

Constructors

new
GraphQLInputObjectType(config)

Properties

readonly
[SYMBOL_TO_STRING_TAG]