DVGraphQL class

The schema registry and executor.

Properties

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

execute(String document, {Map<String, Object?>? variables, String? operationName}) Future<Map<String, Object?>>
Executes document, returning the spec-shaped {data} or {errors}.
introspectionSchema() Map<String, Object?>
The introspection document, in the shape GraphQL clients expect.
registerMutation(DVGraphQLField field) → void
registerQuery(DVGraphQLField field) → void
registerSubscription(DVGraphQLField field) → void
Registers a subscription. Its resolver returns a Stream; each event becomes one {data} payload shaped by the client's selection set.
registerType(DVGraphQLObjectType type) → void
reset() → void
Drops every registration. Intended for tests.
subscribe(String document, {Map<String, Object?>? variables, String? operationName}) Stream<Map<String, Object?>>
Runs a subscription, yielding one spec-shaped result per event.
toSdl() String
The schema as SDL, for humans and for tooling that prefers it to an introspection round trip.
typeNamed(String name) DVGraphQLObjectType?
typeReference(String type) Map<String, Object?>
An SDL type string as an introspection type reference.