CollectTypes class

Walks a set of types and collects everything they reach.

Traversal is cycle-safe: a schema refers back to itself constantly, and a type already seen is not descended into twice.

Constructors

CollectTypes(Iterable<GraphQLType?> types)
Collects everything reachable from each of types.
CollectTypes.fromRootObject(GraphQLObjectType type)
Collects everything reachable from a single root object type.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
traversedTypes ↔ Set<GraphQLType?>
The types collected so far.
getter/setter pair
types → Set<GraphQLType?>
The types collected, in traversal order.
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 other) → bool
The equality operator.
inherited