Hi, I’m encountering an issue and can’t figure out...
# apollo-kotlin
u
Hi, I’m encountering an issue and can’t figure out the cause. I’m using the new incubator libraries for pagination, and I’ve noticed that some cache fields are being set to null, even though the server data isn’t null. For example, I have a
Content
object with a
tags
field. Initially, this list is returned as emptyList(), and it gets stored as emptyList in the ApolloStore DB. However, after adding a single item to the
tags
list and refreshing the data, the server correctly returns a list with one item, but the cache stores that field as null. I also noticed that the
tag
does get stored in the DB.
b
Hi! Any way you could make a small reproducer?
u
Hi, thanks but I fixed the issue last night. It was the FieldMerger. I was returning null
b
👍 got it