Configuration of Apollo Client in faustwp/core #1227
Answered
by
theodesp
Julhol-droid
asked this question in
Q&A
-
Hello I was wondering how I can configure the Apollo Client in the new Version of faustwp/core. Unfortunately the docs for this are currently empty. Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Answered by
theodesp
Jan 20, 2023
Replies: 1 comment 1 reply
-
Hey @Julhol-droid. Thank you for asking. You can definitely configure the Apollo Client using a plugin hook. https://faustjs.org/docs/plugin-system/filters#apolloclientoptions Take a look at an example of how to implement a hook in this blueprint: |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Julhol-droid
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @Julhol-droid. Thank you for asking. You can definitely configure the Apollo Client using a plugin hook.
We have a documentation page for that here:
https://faustjs.org/docs/plugin-system/filters#apolloclientoptions
Take a look at an example of how to implement a hook in this blueprint:
https://github.com/wpengine/atlas-blueprint-portfolio/blob/main/plugins/RelayStylePaginationPlugin.js