package graphql_ppx

  1. Overview
  2. Docs
type type_ref =
  1. | Tr_named of string Source_pos.spanning
  2. | Tr_list of type_ref Source_pos.spanning
  3. | Tr_non_null_named of string Source_pos.spanning
  4. | Tr_non_null_list of type_ref Source_pos.spanning
type input_value =
  1. | Iv_null
  2. | Iv_int of int
  3. | Iv_float of float
  4. | Iv_string of string
  5. | Iv_boolean of bool
  6. | Iv_enum of string
  7. | Iv_variable of string
  8. | Iv_list of input_value Source_pos.spanning list
  9. | Iv_object of (string Source_pos.spanning * input_value Source_pos.spanning) list
type variable_definition = {
  1. vd_type : type_ref Source_pos.spanning;
  2. vd_default_value : input_value Source_pos.spanning option;
}
type variable_definitions = (string Source_pos.spanning * variable_definition) list
type arguments = argument list
type directive = {
  1. d_name : string Source_pos.spanning;
  2. d_arguments : arguments Source_pos.spanning option;
}
type fragment_spread = {
  1. fs_name : string Source_pos.spanning;
  2. fs_directives : directive Source_pos.spanning list;
}
type field = {
  1. fd_alias : string Source_pos.spanning option;
  2. fd_name : string Source_pos.spanning;
  3. fd_arguments : arguments Source_pos.spanning option;
  4. fd_directives : directive Source_pos.spanning list;
  5. fd_selection_set : selection list Source_pos.spanning option;
}
and inline_fragment = {
  1. if_type_condition : string Source_pos.spanning option;
  2. if_directives : directive Source_pos.spanning list;
  3. if_selection_set : selection list Source_pos.spanning;
}
and selection =
  1. | Field of field Source_pos.spanning
  2. | FragmentSpread of fragment_spread Source_pos.spanning
  3. | InlineFragment of inline_fragment Source_pos.spanning
type operation_type =
  1. | Query
  2. | Mutation
  3. | Subscription
type operation = {
  1. o_type : operation_type;
  2. o_name : string Source_pos.spanning option;
  3. o_variable_definitions : variable_definitions Source_pos.spanning option;
  4. o_directives : directive Source_pos.spanning list;
  5. o_selection_set : selection list Source_pos.spanning;
}
type fragment = {
  1. fg_variable_definitions : variable_definitions Source_pos.spanning option;
  2. fg_name : string Source_pos.spanning;
  3. fg_type_condition : string Source_pos.spanning;
  4. fg_directives : directive Source_pos.spanning list;
  5. fg_selection_set : selection list Source_pos.spanning;
}
type definition =
  1. | Operation of operation Source_pos.spanning
  2. | Fragment of fragment Source_pos.spanning
type document = definition list
val innermost_name : type_ref -> string
OCaml

Innovation. Community. Security.