You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please install the latest @envelop/* packages that you are using.
Please make sure the reproduction is as small as possible.
2. A failing test has been provided
3. A local solution has been provided
4. A pull request is pending review
Describe the bug
The caching via plugin useResponseCache is not working as expected when used in the gateway of a federated service. The cache does not store ObjectTypes of GraphQL at all, but only the etag call.
To Reproduce Steps to reproduce the behavior:
Setup a federated service gateway.
Implement the useResponseCache plugin.
Perform GraphQL queries that should be cached.
Observe that only the etag calls are cached, but ObjectTypes are not.
Expected behavior
The cache should store ObjectTypes of GraphQL responses, ensuring that repeated queries retrieve data from the cache as expected.
Issue workflow progress
Progress of the issue based on the
Contributor Workflow
minimal reproduction available on
Stackblitz.
@envelop/*
packages that you are using.Describe the bug
The caching via plugin
useResponseCache
is not working as expected when used in the gateway of a federated service. The cache does not store ObjectTypes of GraphQL at all, but only the etag call.To Reproduce Steps to reproduce the behavior:
useResponseCache
plugin.Expected behavior
The cache should store ObjectTypes of GraphQL responses, ensuring that repeated queries retrieve data from the cache as expected.
Environment:
@envelop/*
versions:"@envelop/response-cache": "^6.1.2"
Additional context
A reproducible repo is provided here: Stackblitz Reproduction
The text was updated successfully, but these errors were encountered: