@snapwp/plugin-apollo-client
v0.1.0
Published
Apollo Client integration for SnapWP.
Keywords
Readme
@snapwp/plugin-apollo-client
Apollo Client adapter for SnapWP.
This package is a wrapper around the @apollo/client library, allowing you to use Apollo Client as the underlying engine for data fetching within the SnapWP ecosystem.
[!WARNING] 🐉 There be dragons! This project is in active development and considered experimental. Some features may be incomplete, unstable, or subject to change.
Installation
Add the package to your SnapWP project's dependencies:
npm install @snapwp/plugin-apollo-client --saveIf you wish to use Apollo Client directly, you should also install the core Apollo Client package:
npm install @snapwp/plugin-apollo-client @apollo/client --saveUpdate your snapwp.config.ts file to use the
ApolloClientEngine:import type { SnapWPConfig } from '@snapwp/core/config'; + import { ApolloClientEngine } from '@snapwp/plugin-apollo-client'; const config: SnapWPConfig = { // The rest of your SnapWP config... query: { + engine: ApolloClientEngine, }, }; export default config;
Contributing
This package is part of SnapWP's monorepo and is actively maintained by rtCamp. Packages are published to npm from the packages directory, and can be used standalone in the headless WordPress ecosystem or as part of SnapWP's framework.
Contributions are welcome and encouraged! To learn more about contributing to this package or SnapWP as a whole, please read the Contributing Guide.
For development guidelines, please refer to our Development Guide.
