package graphql_ppx

  1. Overview
  2. Docs
val ser_optional : ('a -> [> `Null ] as 'b) -> 'a option -> 'b
val ser_list_to_array : ('a -> 'b) -> 'a list -> [> `List of 'b list ]
val ser_optional_list : ('a -> 'b) -> 'a list Source_pos.spanning option -> [> `List of 'b list ]
val ser_name : string Source_pos.spanning -> [> `Assoc of (string * [> `String of string ]) list ]
val ser_type : Graphql_ast.type_ref Source_pos.spanning -> [> `Assoc of (string * 'a) list | `String of string ] as 'a
val ser_value : Graphql_ast.input_value Source_pos.spanning -> [> `Assoc of (string * 'a) list | `Bool of bool | `List of 'a list | `String of string ] as 'a
val ser_object_field : (string Source_pos.spanning * Graphql_ast.input_value Source_pos.spanning) -> [> `Assoc of (string * 'a) list | `Bool of bool | `List of 'a list | `String of string ] as 'a
val ser_argument : (string Source_pos.spanning * Graphql_ast.input_value Source_pos.spanning) -> [> `Assoc of (string * [> `Assoc of (string * 'a) list | `Bool of bool | `List of 'a list | `String of string ] as 'a) list ]
val ser_arguments : (string Source_pos.spanning * Graphql_ast.input_value Source_pos.spanning) list Source_pos.spanning option -> [> `List of [> `Assoc of (string * [> `Assoc of (string * 'a) list | `Bool of bool | `List of 'a list | `String of string ] as 'a) list ] list ]
val ser_variable_definition : (string Source_pos.spanning * Graphql_ast.variable_definition) -> [> `Assoc of (string * [> `Assoc of (string * 'a) list | `Bool of bool | `List of 'a list | `Null | `String of string ] as 'a) list ]
val ser_variable_definitions : (string Source_pos.spanning * Graphql_ast.variable_definition) list Source_pos.spanning option -> [> `List of [> `Assoc of (string * [> `Assoc of (string * 'a) list | `Bool of bool | `List of 'a list | `Null | `String of string ] as 'a) list ] list ]
val ser_directive : Graphql_ast.directive Source_pos.spanning -> [> `Assoc of (string * [> `Assoc of (string * [> `String of string ]) list | `List of [> `Assoc of (string * [> `Assoc of (string * 'a) list | `Bool of bool | `List of 'a list | `String of string ] as 'a) list ] list | `String of string ]) list ]
val ser_directives : Graphql_ast.directive Source_pos.spanning list -> [> `List of [> `Assoc of (string * [> `Assoc of (string * [> `String of string ]) list | `List of [> `Assoc of (string * [> `Assoc of (string * 'a) list | `Bool of bool | `List of 'a list | `String of string ] as 'a) list ] list | `String of string ]) list ] list ]
val ser_type_condition : string Source_pos.spanning -> [> `Assoc of (string * 'a) list | `String of string ] as 'a
val ser_selection_set : Graphql_ast.selection list Source_pos.spanning -> [> `Assoc of (string * 'a) list | `Bool of bool | `List of 'a list | `Null | `String of string ] as 'a
val ser_selection : Graphql_ast.selection -> [> `Assoc of (string * 'a) list | `Bool of bool | `List of 'a list | `Null | `String of string ] as 'a
val ser_definition : Graphql_ast.definition -> [> `Assoc of (string * [> `Assoc of (string * 'a) list | `Bool of bool | `List of 'a list | `Null | `String of string ] as 'a) list ]
val def_end : Graphql_ast.definition -> int
val document_end : Graphql_ast.definition list -> int
val serialize_document : 'a -> Graphql_ast.definition list -> [> `Assoc of (string * [> `Assoc of (string * [> `Assoc of (string * [> `Int of int ]) list | `Int of int | `String of string | `StringExpr of 'a ]) list | `List of [> `Assoc of (string * [> `Assoc of (string * 'b) list | `Bool of bool | `List of 'b list | `Null | `String of string ] as 'b) list ] list | `String of string ]) list ]
OCaml

Innovation. Community. Security.