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>?
no setter
astNode FieldDefinitionNode?
final
description String?
no setter
directives List<Directive>?
no setter
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.
no setterinherited
isOverride bool
final
name String?
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
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