package graphql_ppx

  1. Overview
  2. Docs
type exhaustive_flag =
  1. | Exhaustive
  2. | Nonexhaustive
type field_result =
  1. | Fr_named_field of string * loc * t
  2. | Fr_fragment_spread of string * loc * string
and t =
  1. | Res_nullable of loc * t
  2. | Res_array of loc * t
  3. | Res_id of loc
  4. | Res_string of loc
  5. | Res_int of loc
  6. | Res_float of loc
  7. | Res_boolean of loc
  8. | Res_raw_scalar of loc
  9. | Res_poly_enum of loc * Schema.enum_meta
  10. | Res_custom_decoder of loc * string * t
  11. | Res_record of loc * string * field_result list
  12. | Res_object of loc * string * field_result list
  13. | Res_poly_variant_selection_set of loc * string * (string * t) list
  14. | Res_poly_variant_union of loc * string * (string * t) list * exhaustive_flag
  15. | Res_poly_variant_interface of loc * string * string * t * (string * t) list
  16. | Res_solo_fragment_spread of loc * string
  17. | Res_error of loc * string
type mod_ =
  1. | Mod_fragment of string * string list * bool * Graphql_ast.fragment Source_pos.spanning * t
  2. | Mod_default_operation of Graphql_ast.variable_definitions Source_pos.spanning option * bool * Graphql_ast.operation Source_pos.spanning * t
val res_loc : t -> loc
val can_be_absent_as_field : t -> bool
OCaml

Innovation. Community. Security.