package graphql_ppx

  1. Overview
  2. Docs
GraphQL PPX rewriter for ReScript/ReasonML

Install

Dune Dependency

Authors

Maintainers

Sources

v1.2.2.tar.gz
md5=00455e2a595b925a697fd7e80aab3fb8
sha512=b6e0a5b353b6498c10d03a37ab4a2083ca0d17f227fa906e7c6f07053a7a9198476b7aa7d0e88f4e3c8c44a85469eb3a65805cd6d006ef64ff82fe5bc3524881

doc/graphql_ppx.base/Graphql_ppx_base/Result_decoder/index.html

Module Graphql_ppx_base.Result_decoder

type query_config = {
  1. schema : string option;
  2. records : bool option;
  3. objects : bool option;
  4. inline : bool option;
  5. template_tag : string option;
  6. template_tag_location : string option;
  7. template_tag_import : string option;
  8. template_tag_return_type : string option;
  9. tagged_template : bool option;
  10. template_tag_is_function : bool option;
  11. future_added_value : bool option;
  12. extend : string option;
  13. fragment_in_query : Ppx_config.fragment_in_query option;
  14. apollo_mode : bool option;
}
val generate_config : map_loc: ((Source_pos.source_position * Source_pos.source_position) -> Source_pos.ast_location) -> delimiter:string option -> initial_query_config:query_config -> Graphql_ast.definition list -> (Graphql_ast.definition * Generator_utils.output_config) list

* Takes a list of the AST of the GraphQL definitions (operations or fragments) * and transforms that into a list of result structures. These result structures * form the basis to generate the reason code for: * - `query` variable * - `parse` function * - `serialize` function * - `makeVariables` function

OCaml

Innovation. Community. Security.