ardatan/graphql-mesh

GraphQL Response Caching throws error : options.session is not a function

karthikj511 opened this issue · 2 comments

Response cache plugin is throwing an error.

Below is the error seen :
{
"errors": [
{
"message": "options.session is not a function"
}
]
}

The error can be reproduced in the example sandbox editor (the same shared in the document page)

https://codesandbox.io/p/devbox/kind-leaf-sc5f59?embed=1&file=%2Fexample-query.graphql%3A1%2C1-12%2C1

Thanks for the reproduction.
Could you try with this alpha version?
@graphql-mesh/plugin-response-cache | 0.99.8-alpha-20240806131758-1cc296717c61d0b8eec150b84d500ca1d637c932

The above one was not working, but with the latest alpha build it is working.

@graphql-mesh/plugin-response-cache | 0.100.0-alpha-20240807040201-338274ed9f5e522ced3b57bb0f3cd9c5874483d9