Hey there :wave: Let's say I have query A where I...
# apollo-kotlin
w
Hey there 👋 Let's say I have query A where I ask for
query foo { getList(ids = [a, b, c]) {...} }
and get some response. However, that response does not contain
c
in the list at all. Then, I make a
mutation bar
where in the response I also fetch
getList(ids = [a, b, c])
. This time the response contains all 3 items. Should I expect the
foo
query watcher to re-emit with the entire list as returned by
bar
? Feels like yes, but my tests fail and I'm wondering if I should spend some time on a repro or this is not expected to work 🤔
✅ 1
Resolved, it was an issue on my end 🙂 I was passing wrong arguments to the mutation, and these arguments were stored in cache instead
So there was no common cache key between the query and the mutation