UnionTypeDefinition class

Unions represent an object that could be one of a list of GraphQL Object types (ObjectTypeDefinition), but provides for no guaranteed fields between those types.

They also differ from interfaces in that Object types declare what interfaces they implement, but are not aware of what unions contain them.

See TypeDefinition for details on all GraphQL Type Definitions.

Inheritance
Mixed in types
Annotations

Constructors

UnionTypeDefinition(UnionTypeDefinitionNode astNode, [ResolveType getType])
const

Properties

astNode UnionTypeDefinitionNode
The underlying definition node from gql/ast.dart
final
description String
read-only, inherited
directives List<Directive>
read-only, inherited
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
name String
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
typeNames List<NamedType>
read-only
types List<ObjectTypeDefinition>
http://spec.graphql.org/draft/#sel-HAHdfFDABABlG3ib: [...]
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