Skip to content

Commit 0c984da

Browse files
authored
Merge pull request #225 from wpengine/explanation/apollo-client-basics
added basic apollo reference and explanation page
2 parents df27f89 + 974bd0a commit 0c984da

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
export const metadata = {
2+
title: "Apollo Client Basics",
3+
4+
}
5+
6+
Faust.js uses `@apollo/client` under the hood to perform GraphQL operations against your WordPress backend. Having a solid understanding of Apollo Client queries, fragments, and mutations will help you get the most out of Faust.js.
7+
8+
## Apollo Client GraphQL Concepts
9+
10+
Below are core concepts for Apollo and GraphQL with links to the docs for your reference.
11+
12+
- [Queries](https://www.apollographql.com/docs/react/data/queries) – Retrieve data from your WordPress site.
13+
- [Fragments](https://www.apollographql.com/docs/react/data/fragments) – Modularize your queries to make them more maintainable.
14+
- [Mutations](https://www.apollographql.com/docs/graphos/get-started/concepts/graphql#mutations) – Update data in your WordPress backend.
15+
- [Apollo Client Cache](https://www.apollographql.com/docs/react/caching/cache-configuration) – Cache responses to minimize network usage.
16+
17+
## Faust.js-Specific Notes
18+
19+
- You don’t need to create or configure the client object yourself; Faust handles that for you.
20+
- You can still customize the underlying Apollo Client via plugin filters if you need advanced configuration.

src/pages/docs/nav.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,10 @@
107107
{
108108
"title": "Example",
109109
"route": "/docs/explanation/example"
110+
},
111+
{
112+
"title": "Apollo Client Basics",
113+
"route": "/docs/explanation/apollo-client-basics/"
110114
}
111115
]
112116
}

0 commit comments

Comments
 (0)