From f5fe3e74d36722f78004c1e2e03c77d8b95cd6bf Mon Sep 17 00:00:00 2001 From: Chris Lenfest Date: Wed, 22 May 2024 16:51:13 -0500 Subject: [PATCH] Add changeset for #3014 (#3015) --- .changeset/quick-zebras-wave.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .changeset/quick-zebras-wave.md diff --git a/.changeset/quick-zebras-wave.md b/.changeset/quick-zebras-wave.md new file mode 100644 index 000000000..37a5838e5 --- /dev/null +++ b/.changeset/quick-zebras-wave.md @@ -0,0 +1,7 @@ +--- +"@apollo/query-graphs": 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.