Does anyone know if there's an equivalent API to `...
# apollo-kotlin
s
Does anyone know if there's an equivalent API to
refetchQueries
(to trigger the refetch of a given query following a mutation) in 3.x? Never used this before, but I can see references to the feature searching the Github repo, which I assume are 2.x. Can't work out if there's something I've missed for 3.x
m
Indeed that's one feature that didn't make it to 3.x. Mainly because the implementation was a bit cumbersome and it felt like the same could be achieved relatively easy without the API
Copy code
apolloClient.mutate(mutation).execute()
apolloClient.query(queryToRefectch).execute()
?
I'm curious if you have a different use case, we could maybe design an API to make it work easily
s
Ah, that makes sense – doing this manually works just fine! Thanks Martin!
👍 1