{"id":20942208,"url":"https://github.com/getstation/apollo-link-electron-ipc","last_synced_at":"2025-11-07T01:02:59.726Z","repository":{"id":66202672,"uuid":"120017903","full_name":"getstation/apollo-link-electron-ipc","owner":"getstation","description":"Apollo link that transfers operations to main","archived":false,"fork":false,"pushed_at":"2019-01-23T23:25:59.000Z","size":55,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-19T21:15:46.920Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/getstation.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-02-02T18:44:49.000Z","updated_at":"2020-03-05T17:30:59.000Z","dependencies_parsed_at":"2023-03-01T09:16:14.575Z","dependency_job_id":null,"html_url":"https://github.com/getstation/apollo-link-electron-ipc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getstation%2Fapollo-link-electron-ipc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getstation%2Fapollo-link-electron-ipc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getstation%2Fapollo-link-electron-ipc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getstation%2Fapollo-link-electron-ipc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/getstation","download_url":"https://codeload.github.com/getstation/apollo-link-electron-ipc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243335382,"owners_count":20274898,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-18T23:24:30.846Z","updated_at":"2025-11-07T01:02:59.673Z","avatar_url":"https://github.com/getstation.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# apollo-link-electron-ipc\n\n\u003e In electron, forward GraqhQL operations to the main process\n\n[![NPM Version][npm-image]][npm-url]\n\n\n## Install\n\n```bash\nnpm i -S apollo-link-electron-ipc\n```\n\n## Usage\n\n```ts\n// in main\nimport { createElectronRPCGraphQLRequestExecutor } from 'apollo-link-electron-ipc';\nimport { HttpLink } from 'apollo-link-http';\nimport fetch from 'electron-fetch';\n\n// example with HttpLink\ncreateElectronRPCGraphQLRequestExecutor({\n  link: new HttpLink({\n    uri: 'your-endpoint',\n    fetch\n  })\n});\n\n\n// in renderer\nimport { createElectronRPCLink } from 'apollo-link-electron-ipc';\nimport { ApolloClient } from 'apollo-client';\nimport { InMemoryCache } from 'apollo-cache-inmemory';\n\nconst client = new ApolloClient({\n  link: createElectronRPCLink(),\n  cache: new InMemoryCache(),\n});\n\nclient.query(MY_QUERY);\n```\n\n### Streaming link\n⚠️ apollo-link-electron-ipc supports `ObservableQueries` with streaming links, but requires to instantiate `ApolloClient` with option `queryDeduplication: false,`. See  [apollographql/apollo-client#4322](https://github.com/apollographql/apollo-client/issues/4322)\n\n\n## License\n\n[MIT](http://mit-license.org)\n\n[npm-image]: https://img.shields.io/npm/v/apollo-link-electron-ipc.svg\n[npm-url]: https://npmjs.org/package/apollo-link-electron-ipc","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetstation%2Fapollo-link-electron-ipc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgetstation%2Fapollo-link-electron-ipc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetstation%2Fapollo-link-electron-ipc/lists"}