package graphql_ppx

  1. Overview
  2. Docs
type t =
  1. | ID
  2. | String
  3. | Int
  4. | Float
  5. | Boolean
  6. | Null
  7. | CustomScalar
  8. | Object
  9. | InputObject
  10. | Enum
  11. | Interface
  12. | Union
  13. | EmptyList
type tree =
  1. | T of t
  2. | NonNull of tree
  3. | List of tree
val string_of_t : t -> string
val string_of_tree : tree -> string
val eq : t -> t -> bool
val eq_tree : tree -> tree -> bool
type apply_result =
  1. | Ok
  2. | Unequal
  3. | RequiredMismatch
val can_apply : tree -> tree -> apply_result
val from_schema_tm : Schema.type_meta -> t
val from_schema_tr : schema:Schema.t -> Schema.type_ref -> tree
val from_graphql_ast_tr : schema:Schema.t -> Graphql_ast.type_ref -> tree
val from_graphql_ast_iv : ?arguments:(string, tree) Hashtbl.t -> schema:Schema.t -> Graphql_ast.input_value -> tree
type error =
  1. | MismatchedTypes of string * string
  2. | MismatchedRequiredVar of string * string
  3. | RequiredFieldMissing of string * string
  4. | RequiredVariableMissing of string * string
val generate_error : error -> string