We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 45addfc commit 76d0c03Copy full SHA for 76d0c03
faust.config.js
@@ -9,10 +9,15 @@ class PostTypePolicyPlugin {
9
"apolloClientInMemoryCacheOptions",
10
"faust",
11
(inMemoryCacheObject) => {
12
+ // Merge existing Faust typePolicies with with relayStylePagination for Posts
13
+ const existingPolicies = inMemoryCacheObject.typePolicies || {};
14
+
15
return {
16
...inMemoryCacheObject,
17
typePolicies: {
18
+ ...existingPolicies,
19
Query: {
20
+ ...existingPolicies.Query,
21
fields: {
22
posts: relayStylePagination(),
23
},
0 commit comments