Skip to main content

Module graphql

Module graphql 

Source
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::GraphqlTableExtras;

Modules§

types
GraphQL Type System for Vantage.
vista
Vista bridge for the GraphQL backend.

Structs§

FieldCondition
A single field <op> value clause. Build one with FieldCondition::new.
GraphqlApi
GraphQL HTTP data source. Cheap to clone — the inner ResilientClient is Arc-wrapped.
GraphqlApiBuilder
Builder for GraphqlApi. Use GraphqlApi::builder to start.
GraphqlSelect
GraphQL query builder — produces a query document + variables map.
RenderedQuery
The rendered output of GraphqlSelect::render — what GraphqlApi::post_graphql consumes.
Supports
Per-table overrides for what the server will actually accept, each None meaning “use the dialect’s default”.

Enums§

CountMode
How get_count is answered. YAML: count: list | aggregate.
FilterDialect
How a GraphqlCondition is rendered into a GraphQL argument object.
GraphqlCondition
Structured filter for GraphQL requests. Built by the operator trait (GraphqlOperation in operation.rs) and rendered at fetch time.
GraphqlOp
The set of comparison/logical operators a FieldCondition can use.

Traits§

GraphqlOperation
GraphQL operators that produce a GraphqlCondition.