package graphql_ppx

  1. Overview
  2. Docs
type output_mode =
  1. | String
  2. | Apollo_AST
type fragment_in_query =
  1. | Include
  2. | Exclude
type config = {
  1. verbose_logging : bool;
  2. output_mode : output_mode;
  3. verbose_error_handling : bool;
  4. apollo_mode : bool;
  5. root_directory : string;
  6. schema_file : string;
  7. raise_error_with_loc : 'a. Source_pos.ast_location -> string -> 'a;
  8. template_tag : string option;
  9. template_tag_location : string option;
  10. template_tag_import : string option;
  11. template_tag_return_type : string option;
  12. template_tag_is_function : bool option;
  13. custom_fields : (string, string) Hashtbl.t;
  14. future_added_value : bool;
  15. extend_query : string option;
  16. extend_query_no_required_variables : string option;
  17. extend_mutation : string option;
  18. extend_mutation_no_required_variables : string option;
  19. extend_subscription : string option;
  20. extend_subscription_no_required_variables : string option;
  21. extend_fragment : string option;
  22. fragment_in_query : fragment_in_query;
  23. native : bool;
}
val config_ref : config option ref
val set_config : config -> unit
val update_config : (config -> config) -> unit
val unsafe_unwrap_config : config option -> config
val verbose_logging : unit -> bool
val output_mode : unit -> output_mode
val custom_fields : unit -> (string, string) Hashtbl.t
val future_added_value : unit -> bool
val apollo_mode : unit -> bool
val template_tag : unit -> string option
val fragment_in_query : unit -> fragment_in_query
val template_tag_import : unit -> string option
val template_tag_location : unit -> string option
val template_tag_return_type : unit -> string option
val template_tag_is_function : unit -> bool option
val verbose_error_handling : unit -> bool
val root_directory : unit -> string
val schema_file : unit -> string
val extend_query : unit -> string option
val extend_query_no_required_variables : unit -> string option
val extend_mutation : unit -> string option
val extend_mutation_no_required_variables : unit -> string option
val extend_subscription : unit -> string option
val extend_subscription_no_required_variables : unit -> string option
val extend_fragment : unit -> string option
val native : unit -> bool
val raise_error_with_loc : Source_pos.ast_location -> string -> 'a
OCaml

Innovation. Community. Security.