Open Dunk14 opened 5 months ago
Latest commit: 9e8ea70e3b71ce8265286fb4a450feb57f36e543
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
Issue related : https://github.com/n1ru4l/envelop/issues/2181
Description
Include a
getScope
callback inbuildResponseCacheKey
to enable an Apollo like behavior, wherePUBLIC
scopes have only one cache key to get better performances on larger scales.Type of change
How Has This Been Tested?
I added some unit tests to check that
PRIVATE
scope is correctly retrieved from a query, when directive@cacheControl(scope: PRIVATE)
is put on query, field and subfield.Checklist: