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 <GraphQLFieldInput>[], @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
hashCode int
The hash code for this object. [...]
read-only, inherited
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
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
type GraphQLType<Value, Serialized>
The GraphQLType associated with values that this field's resolve callback returns.
final

Methods

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

Operators

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