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, 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.

Re-exports§

pub use api::GraphqlApi;
pub use api::GraphqlApiBuilder;
pub use condition::FieldCondition;
pub use condition::FilterDialect;
pub use condition::GraphqlCondition;
pub use condition::GraphqlOp;
pub use operation::GraphqlOperation;
pub use select::GraphqlSelect;
pub use select::render::RenderedQuery;
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::NoGraphqlExtras;
pub use vista::spec::GraphqlBlock;
pub use vista::spec::GraphqlColumnBlock;
pub use vista::spec::GraphqlColumnExtras;
pub use vista::spec::GraphqlTableExtras;

Modules§

api
GraphqlApi — the data source struct.
condition
GraphqlCondition — the structured filter type for the GraphQL adapter.
impls
operation
GraphqlOperation — typed comparison/logical operators that produce GraphqlCondition. Blanket-implemented over all Expressive<T>, so typed columns get .eq()/.gt()/.in_()/… for free.
select
GraphQL SELECT-style query builder.
types
GraphQL Type System for Vantage.
vista
Vista bridge for the GraphQL backend.