package graphql_jsoo_client

  1. Overview
  2. Docs

Module Client.MakeSource

Parameters

module Q : QuerySig.Query

Signature

Sourcetype response =
  1. | Success of Q.t
  2. | Unauthorized
  3. | Forbidden
  4. | NotFound
  5. | TooManyRequests
  6. | OtherError of string
Sourceval subscribe : Graphql_jsoo_client__.Connection.t -> Q.t_variables -> (Q.t -> unit) -> string Lwt.t

subscribe con arguments handler Make a subscrption using WebSocket connection

Returns the ID of the subscription

Sourceval unsubscribe : Graphql_jsoo_client__.Connection.t -> string -> unit Lwt.t

query con id Unsubscribe the given id

Sourceval query : Graphql_jsoo_client__.Connection.t -> Q.t_variables -> response Lwt.t

query con arguments Mkae a query

Returns result of query

Sourceval ping : Graphql_jsoo_client__.Connection.t -> Yojson.Basic.t -> unit Lwt.t

ping con payload Send a ping message on the connection

NOTE: Not tested as GraphQL with Dream don't seem to support message type

Sourceval pong : Graphql_jsoo_client__.Connection.t -> Yojson.Basic.t -> unit Lwt.t

pong con payload Send a pong message on the connection

NOTE: Not tested as GraphQL with Dream don't seem to support message type

OCaml

Innovation. Community. Security.