TypeResolver class

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.
@protected, read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns 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