-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Local state management #334
Labels
Comments
@knownasilya did you find a way to have local cache resolvers? |
No |
@knownasilya You need to override export default class OverriddenApolloService extends ApolloService {
clientOptions() {
return {
link: this.link(),
cache: this.cache(),
resolvers: {
MyType: {
myData: (parent, args, obj) => {
return "data";
}
}
},
typeDefs: types // If you need to extend somethings
};
}
} Then, you need to set the service when you create a export default Route.extend({
apollo: queryManager({ service: "overriddenApolloService" }),
// your route
}); |
Does |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How does one add local resolvers for local state management like here: https://www.apollographql.com/docs/react/data/local-state/
The text was updated successfully, but these errors were encountered: