GraphQLObjectField<Value, Serialized> class

A field on a GraphQLObjectType.

It can have input values and additional documentation, and explicitly declares it shape within the schema.

Constructors

GraphQLObjectField(String name, GraphQLType<Value, Serialized> type, { Iterable<GraphQLFieldInput> arguments: const [], @required GraphQLFieldResolver<Value, Serialized> resolve, String deprecationReason, String description })

Properties

deprecationReason → String
The reason that this field, if it is deprecated, was deprecated.
final
description → String
An optional description of this field; useful for tools like GraphiQL.
final
inputs → List<GraphQLFieldInput>
The list of input values this field accepts, if any.
final
isDeprecated → bool
Returns true if this field has a deprecationReason.
read-only
name → String
The name of this field in serialized input.
final
resolve GraphQLFieldResolver<Value, Serialized>
A function used to evaluate the value of this field, with respect to an arbitrary Dart value.
final
type GraphQLType<Value, Serialized>
The GraphQLType associated with values that this field's resolve callback returns.
final
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

deserialize(Serialized serialized, [ Map<String, dynamic> argumentValues = const {} ]) → FutureOr<Value>
serialize(Value value) → FutureOr<Serialized>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator. [...]