Graphql_lwt.SchemaSourceGraphQL schema with Lwt support
include Graphql_intf.Schema
with type 'a Io.t = 'a Lwt.t
and type 'a Io.Stream.t = 'a Lwt_stream.t * (unit -> unit)
and type field_error = stringmodule Io :
Graphql_intf.IO
with type 'a t = 'a Lwt.t
with type 'a Stream.t = 'a Lwt_stream.t * (unit -> unit)val schema :
?mutation_name:string ->
?mutations:('ctx, unit) field list ->
?subscription_name:string ->
?subscriptions:'ctx subscription_field list ->
?query_name:string ->
('ctx, unit) field list ->
'ctx schematype 'ctx resolve_info = {ctx : 'ctx;field : Graphql_parser.field;fragments : fragment_map;variables : variable_map;}val field :
?doc:string ->
?deprecated:deprecated ->
string ->
typ:('ctx, 'a) typ ->
args:('a, 'b) Arg.arg_list ->
resolve:('ctx resolve_info -> 'src -> 'b) ->
('ctx, 'src) fieldval io_field :
?doc:string ->
?deprecated:deprecated ->
string ->
typ:('ctx, 'a) typ ->
args:(('a, field_error) result Io.t, 'b) Arg.arg_list ->
resolve:('ctx resolve_info -> 'src -> 'b) ->
('ctx, 'src) fieldval subscription_field :
?doc:string ->
?deprecated:deprecated ->
string ->
typ:('ctx, 'out) typ ->
args:(('out Io.Stream.t, field_error) result Io.t, 'args) Arg.arg_list ->
resolve:('ctx resolve_info -> 'args) ->
'ctx subscription_fieldval abstract_field :
?doc:string ->
?deprecated:deprecated ->
string ->
typ:(_, 'a) typ ->
args:('a, _) Arg.arg_list ->
abstract_fieldval interface :
?doc:string ->
string ->
fields:(('ctx, 'a) abstract_typ -> abstract_field list) ->
('ctx, 'a) abstract_typval add_type :
('ctx, 'a) abstract_typ ->
('ctx, 'src option) typ ->
'src ->
('ctx, 'a) abstract_valuetype 'a fixpoint = {obj : 'ctx 'src 'typ 'b. ?doc:string ->
string ->
fields:('a -> ('ctx, 'src) field list) ->
('ctx, 'src option) typ;interface : 'ctx 'src. ?doc:string ->
string ->
fields:('a -> abstract_field list) ->
('ctx, 'src) abstract_typ;}val execute :
'ctx schema ->
'ctx ->
?variables:variables ->
?operation_name:string ->
Graphql_parser.document ->
[ `Response of Yojson.Basic.t
| `Stream of Yojson.Basic.t response Io.Stream.t ]
response
Io.texecute schema ctx variables doc evaluates the doc against schema with the given context ctx and variables.