TypeResolver class abstract

Enables "type resolution" for implementing classes, allowing for type-dereferencing, such as is done by GraphQLSchema.

This makes schema-aware use-cases such as code generation much simpler.

Implementers

Constructors

TypeResolver()

Properties

getType ResolveType
Resolve the given name into a TypeDefinition, usually defined within the given context such as a GraphQLSchema.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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 other) bool
The equality operator.
inherited

Static Methods

addedTo(TypeDefinition? definition, ResolveType getType) TypeDefinition?
Saturates the definition with a getType if it extends from TypeResolver
withoutContext(String name) TypeDefinition
throw a StateError when resolution is attempted without a context passed down