rescript-apollo-client
rescript-apollo-client copied to clipboard
ReScript bindings for the Apollo Client ecosystem
Resolves #151 WIP, a lot of these `Js_` types will need to be moved over.
It'd likely cut down on the size overhead of the library, and it certainly would _look_ more like the TS/JS usage of `apollo-client`. I also think it may be possible...
https://github.com/apollographql/subscriptions-transport-ws/blob/master/CHANGELOG.md As of `@apollo/[email protected]` `GraphQLWsLink` has been added to `@apollo/client/link/subscriptions` to replace it. https://github.com/apollographql/apollo-client/blob/main/CHANGELOG.md#improvements-3 Would require a breaking change. Requires writing bindings for [graphql-ws's createClient function](https://github.com/enisdenjo/graphql-ws/blob/master/src/client.ts) and the [GraphQLWsLink](https://github.com/apollographql/apollo-client/blob/main/src/link/subscriptions/index.ts#L50)
I use this in some of my backend nodejs services and it always seems strange to me that I have to install react. I feel like I may have asked...
Hi, First of alll, thank you for your work on this project. I tried to use `RetryLink` and no matter what I put in `attempts` and `delay` I get type...
I am trying to get jest tests to run that utilize this library in a nextjs application. I am getting this error about es modules: ``` /home/user/Repos/project/realm-app/hosting/node_modules/rescript-apollo-client/src/@apollo/client/react/hooks/ApolloClient__React_Hooks_UseQuery.bs.js:3 import * as...
Updated to latest versions @apollo/client: 3.5.0 -> 3.10.8 @reasonml-community/graphql-ppx: 1.0.0 -> 1.2.3 @rescript/react: 0.11.0 -> 0.12.2 rescript: 10.1.2 -> 11.1.2 graphql: 14.0.0 -> 16.9.0 react: 18.2.0 -> 18.3.1 react-dom: 18.2.0...
## Purpose To allow pre-Rescript v11 projects to use this library without reconfiguring ppx flags or setting `"uncurried": false` in one's `rescript.json` (previously the now deprecated `bsconfig.json`). ## Background This...
Changes the internal usage of most externals or function definitions used at runtime to be explicitly uncurried functions. The intent here is that the `Js_` modules are changed, not the...
### Issue Hi! I’ve encountered an issue with `cache.updateQuery` while working with an array of objects in the cache. The goal is to remove an object when it is archived....