Make.Subscription_fieldstype ('ctx, 'src, 'args_to_json, 'out, 'subquery) subscription_field = {field : 'ctx Schema.subscription_field; |
to_json : 'args_to_json; |
name : string; |
}A record contraining the ocaml-graphql-server subscription_fields, its name and a to_json function to be used when serializing a query
val subscription_field :
?doc:string ->
?deprecated:Schema.deprecated ->
string ->
typ:( 'a, 'b ) Schema.typ ->
args:
( 'c,
( 'b Schema.Io.Stream.t, Schema.field_error ) Stdlib.result Schema.Io.t,
'd,
'e,
'f )
Arg.args ->
resolve:( 'a Schema.resolve_info -> 'g ) ->
( 'h,
'i,
'j,
( 'b Schema.Io.Stream.t, Schema.field_error ) Stdlib.result Schema.Io.t,
'k )
subscription_fieldwrapper around the subscription_field typ