Expand description
GraphQL adapter for Vantage.
Talks to a GraphQL endpoint over HTTP. Unlike the REST sibling, this
adapter has its own query language (rendered via GraphqlSelect),
structured filter conditions (GraphqlCondition), mandatory field
projection, and nested selection sets for relationships — closer in
shape to the MongoDB or SQL backends than to REST.
Schemas are maintained locally (no introspection); type information
flows through the GraphqlType system declared in types. The
vista module bridges tables and YAML specs into Vista.
Re-exports§
pub use types::AnyGraphqlType;pub use types::GraphqlType;pub use types::GraphqlTypeVariants;pub use vista::GraphqlApiTableShell;pub use vista::GraphqlApiVistaFactory;pub use vista::GraphqlApiVistaSpec;pub use vista::GraphqlBlock;pub use vista::GraphqlColumnBlock;pub use vista::GraphqlColumnExtras;pub use vista::GraphqlSpecResolver;pub use vista::GraphqlTableExtras;
Modules§
Structs§
- Field
Condition - A single
field <op> valueclause. Build one withFieldCondition::new. - Graphql
Api - GraphQL HTTP data source. Cheap to clone — the inner
ResilientClientisArc-wrapped. - Graphql
ApiBuilder - Builder for
GraphqlApi. UseGraphqlApi::builderto start. - Graphql
Select - GraphQL query builder — produces a query document + variables map.
- Rendered
Query - The rendered output of
GraphqlSelect::render— whatGraphqlApi::post_graphqlconsumes. - Supports
- Per-table overrides for what the server will actually accept, each
Nonemeaning “use the dialect’s default”.
Enums§
- Count
Mode - How
get_countis answered. YAML:count: list | aggregate. - Filter
Dialect - How a
GraphqlConditionis rendered into a GraphQL argument object. - Graphql
Condition - Structured filter for GraphQL requests. Built by the operator trait
(
GraphqlOperationinoperation.rs) and rendered at fetch time. - Graphql
Op - The set of comparison/logical operators a
FieldConditioncan use.
Traits§
- Graphql
Operation - GraphQL operators that produce a
GraphqlCondition.