Graphql_basic_scalars.Utils
Utility 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 ... end
module type Json_intf_any_typ = sig ... end
module 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.t
module 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.t
module 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.t
module Schema : sig ... end
The async schema