From 0eb9313dd43ac45fa07e6ebd19f99abf75e5bb8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9e?= Date: Thu, 17 Oct 2024 13:21:05 +0100 Subject: [PATCH] docs: add changeset for #6162 (#6163) --- .changesets/fix_renee_router_815_changeset.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .changesets/fix_renee_router_815_changeset.md diff --git a/.changesets/fix_renee_router_815_changeset.md b/.changesets/fix_renee_router_815_changeset.md new file mode 100644 index 0000000000..2adf7616d1 --- /dev/null +++ b/.changesets/fix_renee_router_815_changeset.md @@ -0,0 +1,11 @@ +### Fix cost calculation for subgraph requests with named fragments ([PR #6162](https://github.com/apollographql/router/issues/6162)) + +In some cases where subgraph GraphQL operations contain named fragments and abstract types, demand control used the wrong type for cost calculation, and could reject valid operations. +Now, the correct type is used. + +This fixes errors of the form: +``` +Attempted to look up a field on type MyInterface, but the field does not exist +``` + +By [@goto-bus-stop](https://github.com/goto-bus-stop) in https://github.com/apollographql/router/pull/6162 \ No newline at end of file