This repo contains a proof of concept of a graphql server built in a modular way,
by defining a Gql
module next to each type used by the graphql server.
In addition to the graphql schema, these modules provide:
-
A
query
type that can be used to build graphql queries (which may contains arguments). For now there is only one such type but there probably should be others for mutations and subscriptions. -
A
build_query
function to build the query. (For now it generates a string, but it should likely directly return ajson
query as well as avariables
json object). -
A
response_of_json
object that will help parse the result of a query.