From 0f9d856a4db258346ac41ed40d78bfa84ff89f61 Mon Sep 17 00:00:00 2001 From: Geoffroy Couprie Date: Wed, 13 Nov 2024 14:34:02 +0100 Subject: [PATCH] Fix introspection query deduplication Introspection queries are not supposed to be cached, but their result still needds to be sent to deduplicated queries --- apollo-router/src/query_planner/caching_query_planner.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apollo-router/src/query_planner/caching_query_planner.rs b/apollo-router/src/query_planner/caching_query_planner.rs index 688ce1c697..33cda8db24 100644 --- a/apollo-router/src/query_planner/caching_query_planner.rs +++ b/apollo-router/src/query_planner/caching_query_planner.rs @@ -560,6 +560,10 @@ where tokio::spawn(async move { entry.insert(Ok(content)).await; }); + } else { + tokio::spawn(async move { + entry.send(Ok(content)).await; + }); } }