From 907babf82516365fd688892dbbc30dcc18b85712 Mon Sep 17 00:00:00 2001 From: "Sachin D. Shinde" Date: Wed, 22 May 2024 13:40:07 -0700 Subject: [PATCH] Fix bug in context-matching logic for interfaces-implementing-interfaces (#3014) A field is considered to match a context if the field's parent type (in the original query) either has `@context` on it, or implements/is a member of a type with `@context` on it. We ended up missing the case where interfaces implement interfaces; this PR introduces a fix. --- query-graphs-js/src/graphPath.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/query-graphs-js/src/graphPath.ts b/query-graphs-js/src/graphPath.ts index 6012ae025..1a1c198a9 100644 --- a/query-graphs-js/src/graphPath.ts +++ b/query-graphs-js/src/graphPath.ts @@ -1924,7 +1924,7 @@ function canSatisfyConditions i.name === t)) { return true; }