package graphql_ppx

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

Install

Dune Dependency

Authors

Maintainers

Sources

v1.0.1.tar.gz
md5=bcf43590b569405282f698ad5bdb45f9
sha512=644479f8fc2760cf202c4bce04cb5cf6e1a8f38fcc9a68583c92b8c4fe614c58d4d28e29a21935ef01f3b049d3ebea14ae6eaebf01000ec2a69cf62105338d8a

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. future_added_value : bool option;
  11. extend : string option;
  12. fragment_in_query : Ppx_config.fragment_in_query option;
  13. 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.