apollo-link-electron-ipc
In electron, forward GraqhQL operations to the main process
Install
npm i -S apollo-link-electron-ipc
Usage
// in main;;; // example with HttpLinkcreateElectronRPCGraphQLRequestExecutor; // in renderer;;; ; client.queryMY_QUERY;
Streaming link
⚠️ apollo-link-electron-ipc supports ObservableQueries
with streaming links, but requires to instantiate ApolloClient
with option queryDeduplication: false,
. See apollographql/apollo-client#4322