Graphql_basic_scalars.UtilsUtility 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 type Schema = sig ... endmodule type Json_intf_any_typ = sig ... endmodule Make_scalar_using_to_string
(T : sig ... end)
(Scalar : sig ... end)
(Schema : Schema) :
Json_intf_any_typ
with type ('a, 'b) typ := ( 'a, 'b ) Schema.typ
with type t = T.tmodule Make_scalar_using_base58_check
(T : sig ... end)
(Scalar : sig ... end)
(Schema : Schema) :
Json_intf_any_typ
with type ('a, 'b) typ := ( 'a, 'b ) Schema.typ
with type t = T.tmodule Make_scalar_using_base64
(T : sig ... end)
(Scalar : sig ... end)
(Schema : Schema) :
Json_intf_any_typ
with type ('a, 'b) typ := ( 'a, 'b ) Schema.typ
with type t = T.tmodule Schema : sig ... endThe async schema