{"repo":"oliyh/re-graph","free":true,"listed":false,"github":"https://github.com/oliyh/re-graph","clone":"git clone https://github.com/oliyh/re-graph.git","description":"A graphql client for clojurescript and clojure","language":"Clojure","stars":466,"topics":["clojure","clojurescript","graphql","graphql-client","re-frame","cljs","clj","client"],"license":null,"category":"api-integrations-sdks","readme_excerpt":"re-graph re-graph is a graphql client for Clojure and ClojureScript with bindings for re-frame applications. Upgrade notice :fire: Version 0.2.0 was recently released with breaking API changes. Please read the Upgrade guide for more information. Notes This library behaves like the popular Apollo client for graphql and as such is compatible with lacinia-pedestal. Features include: Subscriptions, queries and mutations Supports websocket and HTTP transports Works with Apollo-compatible servers like lacinia-pedestal Queues websocket messages until ready Websocket reconnects on disconnect Simultaneous connection to multiple GraphQL services Handles reauthentication without disruption Contents - Usage - Vanilla Clojure/Script - re-frame - Options - Multiple instances - Authentication - Headers - Connection init payload - Cookies - Token in query param - Basic auth - Subscription protocol - Sub-protocol hack - Re-initialisation - Development Usage Add re-graph to your project's dependencies: This will also pull in re-graph.hato , a library for using re-graph on the JVM based on hato which requires JDK11. To use earlier JDKs, exclude re-graph.hato and include re-graph.clj-http-gniazdo . If you are only targeting Javascript you do not need either of these libraries. Vanilla Clojure/Script Call the init function to bootstrap it and then use subscribe , unsubscribe , query and mutate functions: re-frame users Dispatch the init event to bootstrap it and then use the :subscribe , :unsubsc","default_branch":null,"files":null,"tree":[],"storefront":"/r/oliyh","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/oliyh/re-graph/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}