NerdWalletOSS / apollo-cache-policies

An extension of the Apollo 3 cache with support for advanced cache policies.
Apache License 2.0
157 stars 21 forks source link

fix #81 TTL doesn't work for query which responded with empty array or scalar #82

Closed qwertypomy closed 3 months ago

danReynolds commented 3 months ago

Thanks for this bug report and fix proposal. Closing this PR in favor of https://github.com/NerdWalletOSS/apollo-cache-policies/pull/85 which addresses the issue in the spot that I think makes the most sense, where other entity type map entries are written. Your fix was really helpful for making that PR though, copied some of your work. 👏