A family of composable, layered libraries for building GraphQL queries from host-language values rather than templated strings.
The core idea: a small, backend-agnostic query composer at the base, and backend-flavored plugins on top of it that add the conventions specific to a given GraphQL-speaking system. Each layer is independently versioned and adoptable. Output is always plain, spec-compliant GraphQL text — gql-x projects produce input for the rest of the GraphQL ecosystem, not a replacement for any part of it.
-
Composer — the base library. A general-purpose GraphQL query composer with variable hoisting, dynamic composition, and a small extension surface for plugin authors. Spiritual successor to the legacy
gql-query-builderpackage, but with no shared code. -
Plugin-DefraDB — a plugin targeting DefraDB, the open-source peer-to-peer document database from Source Network. Adds DefraDB's filter shapes, input shapes, aggregates, grouped aggregates, and
over-style arguments on top of composer. -
Plugin-DefraDB-Transport-HTTP — a plugin on top of Plugin-DefraDB that defines an HTTP transport for live execution of DefraDB queries as well as transaction management.
If you just want to build GraphQL queries against any GraphQL endpoint, start with Composer.
If you're working with DefraDB specifically, Plugin-DefraDB is the right entry point; it bundles Composer plus the DefraDB-flavored DSL. And if/when you want to execute those queries, check out the Plugin-DefraDB-Transport-HTTP plugin.