DVPersistedQueries class

The persisted-query manifest: every document the application's own clients can send, keyed by the sha256 of its exact text.

Constructors

DVPersistedQueries({DVPersistedQueryMode mode = DVPersistedQueryMode.off, Iterable<String> documents = const <String>[]})
DVPersistedQueries.fromManifest(Map<String, String> manifest, {DVPersistedQueryMode mode = DVPersistedQueryMode.off})
A manifest as the build ships it, hash to document.

Properties

hashCode → int
The hash code for this object.
no setterinherited
hashes → Iterable<String>
no setter
mode → DVPersistedQueryMode
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

documentFor(String hash) → String?
The document persisted under hash, or null.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
withMode(DVPersistedQueryMode mode) → DVPersistedQueries
The same manifest enforced as mode: how the generated backend applies dartvel.api.graphql.persistedQueries without discarding documents the application loaded.

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

hashOf(String document) → String
The lowercase hex sha256 of document's UTF-8 bytes.