package graphql_jsoo_client

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Parameters

module Q : QuerySig.Query

Signature

type response =
  1. | Success of Q.t
  2. | Unauthorized
  3. | Forbidden
  4. | NotFound
  5. | TooManyRequests
  6. | OtherError of string
val 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

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

query con id Unsubscribe the given id

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

query con arguments Mkae a query

Returns result of query

val 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

val 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.