Skip to main content

link_cli/graphql/
mod.rs

1//! A Hasura-compatible GraphQL server for the Deep standard (issue #153), so
2//! that `DeepClient` and deepcase connect to `clink --serve --graphql`.
3//!
4//! Each part is a layer over the one below, which it reaches only through
5//! [`Triplets`](crate::triplets::Triplets) and
6//! [`NamedTypeLinks`](crate::named_type_links::NamedTypeLinks):
7//!
8//! - [`store`] maps the rows of Deep to triplets, under the permission layer;
9//! - [`plan`] translates `where` to substitution queries;
10//! - [`select`], [`mutate`] and [`virtual_tables`] execute a document;
11//! - [`server`] speaks HTTP and both WebSocket subprotocols.
12//!
13//! See `docs/GRAPHQL.md` for the mapping and for what is left out.
14
15pub mod crypto;
16pub mod document;
17pub mod execute;
18pub mod json;
19pub mod mutate;
20pub mod plan;
21pub mod select;
22pub mod server;
23pub mod store;
24pub mod tables;
25pub mod virtual_tables;
26
27pub use execute::{execute, Auth, Settings};
28pub use json::Json;
29pub use server::{GraphqlServer, GraphqlShutdown};
30pub use store::DeepStore;