Field class Null safety

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

Constructors

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

Properties

alias String
read-only, override
arguments List<Argument>
read-only
astNode FieldNode
final
directives List<Directive>
read-only
getType GetExecutableType
final, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
name String
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
schemaType FieldDefinition?
final
selectionSet SelectionSet?
read-only
type GraphQLType?
read-only

Methods

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

Operators

operator ==(Object o) bool
The equality operator. [...]
inherited