Graphql_basic_scalarsThis file defines basic graphql scalars in a shape usable by graphql_ppx for serialising.
It is meant to be used by backend graphql code.
It also includes basic round-trip testing facilities for GraphQL scalar types.
The graphql_lib library re-exports these basic scalars as well as other ones, and is meant to be used by client code (via grapqh_ppx).
module Make (Schema : Utils.Schema) : sig ... endmodule type Json_intf = sig ... endval unsigned_scalar_scalar :
to_string:( 'a -> string ) ->
string ->
( 'b, 'c option ) Utils.Schema.typmodule UInt32 : sig ... endmodule UInt64 : sig ... endmodule Index : sig ... endmodule JSON : sig ... endmodule String_json : sig ... endmodule Time : sig ... endmodule Span : sig ... endmodule InetAddr : sig ... endmodule Utils : sig ... endUtility functors to build custom graphql scalars. These functors parametric in the GraphQL Schema module, so that we can use them either with the async version (for the main application) or the pure version (for tests).
module Testing : sig ... end