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
@knownasilya You need to override clientOptions() in ApolloService to add local resolvers :
exportdefaultclassOverriddenApolloServiceextendsApolloService{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 queryManager:
exportdefaultRoute.extend({apollo: queryManager({service: "overriddenApolloService"}),// your route});
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: