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.
no setteroverride
inputs → List<GraphQLFieldInput>
The list of input values this field accepts, if any.
final
isDeprecated → bool
Returns true if this field has a deprecationReason.
no setter
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.
no setterinherited
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 nonexistent method or property is accessed.
inherited
serialize(Value value) → FutureOr<Serialized>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
override