Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

GraphQLInputObjectType

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 },
  }
});
class GraphQLInputObjectType {
constructor(config: Readonly<GraphQLInputObjectTypeConfig>);
private _fields;
description: Maybe<string>;
extensionASTNodes: ReadonlyArray<InputObjectTypeExtensionNode>;
extensions: Readonly<GraphQLInputObjectTypeExtensions>;
name: string;
get [Symbol.toStringTag](): string;
 
getFields(): GraphQLInputFieldMap;
toConfig(): GraphQLInputObjectTypeNormalizedConfig;
toJSON(): string;
toString(): string;
}

§Constructors

§
new GraphQLInputObjectType(config: Readonly<GraphQLInputObjectTypeConfig>)
[src]

§Properties

§
_fields
[src]
§
description: Maybe<string>
[src]
§
extensionASTNodes: ReadonlyArray<InputObjectTypeExtensionNode>
[src]
§
name: string
[src]
§
[Symbol.toStringTag]: string readonly
[src]

§Methods

§
toConfig(): GraphQLInputObjectTypeNormalizedConfig
[src]
§
toJSON(): string
[src]
§
toString(): string
[src]