You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,7 +49,7 @@ resourcePublications(
49
49
50
50
## Apollo Cache Compatability
51
51
52
-
Be default, apollo server won't cache if a field on resolver is an object, thinking objects need database calls and probably are expensive to resolve. While in the case of pagination's `node` object, they are already solved. So I've added cache control inheritance to all the respective fields and you don't really have to worry about that. This package goes nicely with the other exonest package, [exonest/graphql-cache-control](https://github.com/exonest/graphql-cache-control)
52
+
Be default, Apollo server won't cache if a field on resolver is an object (non-scalar), thinking non-scalar fields need fetching and are probably somehow independent ([more info](https://www.apollographql.com/docs/apollo-server/performance/caching/#default-maxage)). While in the case of pagination's `node` object or `edges`, they are already fetched and available. So I've added cache control inheritance to all the respective fields and you don't really have to worry about that. This package goes nicely with the other exonest package for GraphQL caching, [exonest/graphql-cache-control](https://github.com/exonest/graphql-cache-control)
0 commit comments