{"library":"apollo-client-mux","type":"library","category":null,"description":"apollo-client-mux is an early-stage library, currently at version 0.0.3, designed for advanced GraphQL client configurations. It enables a single Apollo Client instance to manage interactions with multiple distinct GraphQL endpoints. The library achieves this by allowing developers to define separate ApolloCache and ApolloLink instances for each endpoint, which are then integrated into a 'muxed' cache and link. This approach is particularly useful in microservice architectures or when integrating with multiple third-party GraphQL APIs, where different data models and network configurations necessitate isolated caching and request routing. It integrates with `@graphql-codegen` via a transformation utility to automatically apply an `@endpoint` directive to operation documents, ensuring queries and mutations are routed to the correct endpoint. Its current low version suggests active development and potential for API changes.","language":"javascript","status":"active","version":"0.0.3","tags":["javascript","graphql","apollo","apollo-client","apollo-link","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install apollo-client-mux","imports":["import { addEndpointDirectiveForCodegen } from 'apollo-client-mux/transform';","import { withCacheMux } from 'apollo-client-mux';","import { createApolloLinkMux } from 'apollo-client-mux';"]},{"cmd":"yarn add apollo-client-mux","imports":[]},{"cmd":"pnpm add apollo-client-mux","imports":[]}],"homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/apollo-client-mux","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/apollo-client-mux/compatibility"}}