# All channels
Sachin D. Shinde@sachin-shinde
Apollo 3, how to handle list after eviction
I've got a list of items and a remove query that evicts one of those items. After the eviction, the item remains on the list. Right now it seems like my options are to either filter out the item in question from every list in my UI, defined custom read typePolicies or to…
Handling @client fields with resolvers
I have a query that contains a virtual field that gets resolved from a local link-state cache, but when I update the cache the value in the query doesn't change. Is there any solution to update that field without refetching the query?
Creating a schema with varying nested key values
Hi guys, I'm not really sure how to even title this but I'm having an issue getting a non-null value back... I'm hoping someone can help me out and tell me what I'm doing wrong... The api I'm pulling from returns the following format... My issue is that I cannot pull anything…
Update normalised in-memory cache after mutation and make query refetched
Hi, I'm building a small chat app. After posting new message via mutation, the returned object is the Message data. My intention is to update the cache with the new message and refetch query (from cache) to update ui with submitted message. I'm using writeAndPublish() to update…
[GraphQL error]: Message: Validation error of type UndefinedVariable
I'm having a lot of trouble inserting variables into my query string. Here's the syntax of the query and how I'm inserting the variable. I was using just string interpolation previously which was working fine but now I want to use the fetchMore function which requires variables…
Adding a link to Apollo Link with data from a React provider after the client…
This question comes from the main Apollo React documentation on Authentication with Tokens which relies on local storage. https://www.apollographql.com/docs/react/v3.0-beta/networking/authentication/ I have a token stored in a Provider which is higher than the Apollo Client. How…
Problem using REST datasources - 'dataSources' of 'undefined'
I'm trying to call an API resolver but I'm having difficulty trying to access the datasource. I realised the problem wasn't with the API but with dataSources. Would you be able to help me resolve this and have my server recognise the dataSources? I am using Typescript and Type…