ConfQL
This is intended as a very low-friction means of turning structured yaml into a GraphQL service.
Your first place to look should be the quick start example in the source repo. There you'll find a way to containerize a GraphQL service given only a quick container build against your schema, run with a data directory mount.
The client surface to this library is pretty much just the procedural macro [graphql_schema_from_file].
Example
use graphql_schema;
use indoc;
use ;
use TestFiles;
// In practice you'll more likely use the `graphql_schema_from_file` macro
// but this macro is nice for tests.
graphql_schema!;
// We have some types generated to play with
let _mork = Alien ;
// And juniper can execute, resolving against files
// Assemble some demo data on the filesystem
let mocks = new;
mocks.file;
// The `Ctx` struct has been generated for us, implementing
// `juniper::Context`. All it needs to initialize is a `PathBuf`
// pointing at the root of the data directory.
let ctx = from;
// Run the executor.
let = execute_sync
.unwrap;
// Ensure the value matches.
assert_eq!;
Current version: 0.4.1
License: MIT