query Test($genre: Genre) {
exampleGetMovies(input: {
movie: {
genre: $genre
}
}) {
result {
name
}
}
}
send 2 request, whith different variables e.g.
{ "genre": "ACTION" } # Request number one
{ "genre": "DRAMA" } # Request number two
Expected behavior
Second request should return "DRAMA" movies, but it returns "ACTION" movies. If you log request details you will see that second request got the cached values from first request
[0] {
[0] "movie": {
[0] "genre": 1
[0] }
[0] }
[0] called with MetaData: {"somekey":"someValue","connection_type":"keep-alive","user-agent":"grpc-node-js/1.10.1"}
[0] {
[0] "movie": {
[0] "genre": 1
[0] }
[0] }
[0] called with MetaData: {"somekey":"someValue","connection_type":"keep-alive","user-agent":"grpc-node-js/1.10.1"}
Environment:
OS: MacOS Sonoma 14.12.1 / arm64 (but also reproduced in live env with Linux alpine / amd64)
Issue workflow progress
Progress of the issue based on the Contributor Workflow
Describe the bug
To Reproduce Steps to reproduce the behavior: Repo to reproduce: https://github.com/casuallyhostile/graphql-mesh-repro-6614
You need to have grpc handler and openapi handler in one
.meshrc
+ use global transform (mode: wrap) e.g.Create query with variables e.g.
send 2 request, whith different variables e.g.
Expected behavior
Second request should return "DRAMA" movies, but it returns "ACTION" movies. If you log request details you will see that second request got the cached values from first request
Environment:
alpine / amd64
)Additional context