Public constructor consuming the HTTP endpoint
Model queries
should be committed against, and an dynamic or static prioritize
value. The prioritize
value may either be a mapping of Models to
corresponding priorities or a static priority for this Querier.
Static
Readonly
[provide]Magic string by which this class is provided.
Readonly
typesA set containing the Querier.Types this Querier can handle.
As HTTP connections are short-lived, the HttpQuerier may only
handle one-off types, namely 'mutation'
and 'query'
.
Private
Readonly
endpointThe HTTP endpoint
to commit queries against.
Private
Readonly
prioritizeThe dynamic or static prioritization.
Overridden commit method of the Querier base class. When this Querier is made available via the Linker, this overridden commit method is called when this Querier claims the highest priority to commit an Querier.Operation, depending on the Model from which the Querier.Operation originates.
The Querier.Operation to be committed.
Optional
variables: VariablesAny Querier.Variables within the operation
.
An Observable of the committed Querier.Operation.
An Observable of an AggregateError.
Overridden priority method of the Querier base class. When an
Querier.Operation is to be committed, this method is called
with the respective model
Model.Type and returns the claimed
priority to commit this Model.
The numeric priority of this Querier implementation.
Generated using TypeDoc
The HttpQuerier class implements an Http based Querier, i.e., an extension of the abstract Querier base class, allowing for Model queries to be executed via HTTP. To use this class, provide it to the Linker by either extending it, and decorating the extending class with the Target decorator, or by preemptively supplying an instance of this class to the Linker.
Example
Provide the HttpQuerier to the Linker:
See