Documentation about using Vike with Apollo (GraphQL).

💚
This page is maintained by the community and may contain outdated information; PR welcome to update or improve it.

If you are using vike-react you can use vike-react-apollo for automatic integration.

The vike-react-apollo extension requires vike-react.

💚

There isn't a Vike extension for Apollo with vike-vue yet, but contributions welcome to create one.

Manual integration

To manually integrate Apollo, see:

Examples of integrating Apollo without using vike-react/vike-vue/vike-solid:

You can also have a look at the source code of vike-react-apollo.

See also