apollo-datasource-mongodb
apollo-datasource-mongodb copied to clipboard
fix: deleteFromCacheByFields to mirror logic from findByFields
Currently deleteFromCacheByFields doesn't follow the same logic as findByFields for the loader key. This leads to incorrect behavior when the cache is supposed to be invalidated from a call to deleteFromCacheByFields but findByFields keeps returning the stale result because of the loader field mismatch.