graph-client
graph-client copied to clipboard
Integration: relay
@n1ru4l what do you think about this one?
Basically, the tooling we are building in this repo will eventually have a remote executable schema (mesh/tools executor) that we can use as Link/Exchange/fetch
function/execute
wrapper.
How do you think this should be integrated with Relay? From my experience, I used https://github.com/relay-tools/react-relay-network-modern for managing the client network pipeline, but is there anything else we need to consider/support here?
I neve used react-relay-network-modern before.
All that relay needs is basically a fetcher function.
import {
Observable,
GraphQLResponse,
RequestParameters,
} from "relay-runtime";
type FetcherFunction = (
request: RequestParameters,
variables: Variables
) => Observable<GraphQLResponse>;
So that should be the interface we expose?
All that relay needs is basically a fetcher function.
that's great! we already plan to expose raw fetch/execute functions, so it should be simple to integrate!
Any progress on this?