Field class

A SelectionSet is primarily composed of fields.

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

Field(FieldNode astNode, [FieldDefinition? schemaType, GetExecutableType? getType])
const

Properties

alias → String
no setteroverride
arguments → List<Argument>
no setter
astNode → FieldNode
final
directives → List<Directive>
no setter
getType → GetExecutableType
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
name → String
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
schemaType → FieldDefinition?
final
selectionSet → SelectionSet?
no setter
type → GraphQLType?
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object o) → bool
The equality operator.
inherited