FieldDefinition class

A field describes one discrete piece of information available to request within a selection set.

Some fields describe complex data or relationships to other data. In order to further explore this data, a field may itself contain a selection set, allowing for deeply nested requests.

All GraphQL operations must specify their selections down to fields which return scalar values to ensure an unambiguously shaped response.

Inheritance
Annotations
  • @immutable

Constructors

FieldDefinition(FieldDefinitionNode astNode, [ResolveType getType, bool isOverride])
const

Properties

args → List<InputValueDefinition>
read-only
astNode FieldDefinitionNode
final
description → String
read-only
directives → List<Directive>
read-only
getType ResolveType
Resolve the given name into a TypeDefinition, usually defined within the given context such as a GraphQLSchema.
final
hashCode → int
The hash code for this object. [...]
read-only, inherited
isOverride → bool
final
name → String
read-only
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited
type GraphQLType
read-only

Methods

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 ==(Object o) → bool
The equality operator. [...]
inherited