package graphql_ppx

  1. Overview
  2. Docs
exception Schema_file_not_found
val typename_field : Schema.field_meta
val map_items : ('a -> 'b -> 'c * 'd) -> ('a, 'b) Hashtbl.t -> ('c, 'd) Hashtbl.t
val map_values : ('a -> 'b -> 'c) -> ('a, 'b) Hashtbl.t -> ('a, 'c) Hashtbl.t
val some_or : 'a option -> 'a -> 'a
val add_typename_if_missing : Schema.field_meta list -> Schema.field_meta list
exception Unknown_type_kind of string
val type_ref_name : Schema.type_ref -> string
val make_enum_value_meta : Yojson__Basic.t -> Schema.enum_value_meta
val make_type_ref : Yojson__Basic.t -> Schema.type_ref
val make_argument_meta : Yojson__Basic.t -> Schema.argument_meta
val make_field_meta : Yojson__Basic.t -> Schema.field_meta
val make_scalar_meta : Yojson__Basic.t -> Schema.scalar_meta
val make_object_meta : Yojson__Basic.t -> Schema.object_meta
val make_enum_meta : Yojson__Basic.t -> Schema.enum_meta
val make_interface_meta : Yojson__Basic.t -> Schema.interface_meta
val make_union_meta : Yojson__Basic.t -> Schema.union_meta
val make_input_object_meta : Yojson__Basic.t -> Schema.input_object_meta
val make_type_meta : 'a -> Yojson__Basic.t -> Schema.type_meta
val make_type_map : Yojson__Basic.t array -> (string, Schema.type_meta) Hashtbl.t
val make_directive_location : Yojson__Basic.t -> Schema.directive_location
val make_directive_meta : 'a -> Yojson__Basic.t -> Schema.directive_meta
val make_directive_map : Yojson__Basic.t array -> (string, Schema.directive_meta) Hashtbl.t
val make_schema_meta : Yojson__Basic.t -> Schema.schema_meta
val find_file_towards_root : string -> string -> string option
exception Ppx_cache_dir_is_not_dir
val create_dir_if_not_exist : string -> unit
val ppx_cache_dir : string

* Naming Explaniation * * json_schema_rel: the path passed in from bsconfig.json "schema" flag * json_schema: the absolute path of confirmed-exist json schema * marshaled_schema: the absolute path of marshaled schema

val get_ppx_cache_path : string -> string -> string
val get_marshaled_path : string -> string
val get_hash_path : string -> string
val parse_json_schema : string -> Schema.t
val create_marshaled_schema : string -> 'a -> unit
val build_schema : string -> unit
val build_schema_if_dirty : string -> unit
val read_marshaled_schema : string -> 'a
val recovery_build : string -> 'a
val get_schema : string option -> 'a lazy_t
OCaml

Innovation. Community. Security.