Skip to content

Commit

Permalink
revised changeset description
Browse files Browse the repository at this point in the history
  • Loading branch information
duckki authored and dariuszkuc committed Oct 14, 2024
1 parent bb5d85d commit 894a1d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .changeset/wise-yaks-switch.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@

Fixed a bug that `__typename` with applied directives gets lost in fetch operations.

The query planner uses a technique called sibling typename optimization to simplify operations by folding __typename selections into a sibling selection. However, that optimization does not account for applied directives or aliasing. The bug was applying it even if the `__typename` has directives applied. `__typename` with directives (or alias) are now excluded from the optimization.
The sibling typename optimization used by query planner simplifies operations by folding `__typename` selections into their sibling selections. However, that optimization does not account for directives or aliases. The bug was applying the optimization even if the `__typename` has directives on it, which caused the selection to lose its directives. Now, `__typename` with directives (or aliases) are excluded from the optimization.

0 comments on commit 894a1d6

Please sign in to comment.