Skip to content

hive-router-query-planner 2.10.0 (2026-06-17)

Choose a tag to compare

@knope-bot knope-bot released this 17 Jun 12:23
b74b459

Features

Add an experimental query planner option, experimental_abstract_type_folding

query_planner:
    experimental_abstract_type_folding: true # false by default

Folds matching concrete object-type fragments in subgraph calls, into a shared interface fragment even when that interface is not the field's declared return type.

It's an opt-in addition to 011be5b.

# queries `product-service` subgraph
query {
  products {
-    ... on Book  { id title }
-    ... on Movie { id title }
+    ... on Media { id title }
  }
}

The products field returns Product interface, but one object-type member of this interface called Album is not present in the query, therefore ... on Product {...} is not possible to use (default behavior). With the feature flag enabled, both fragments are folded into ... on Media { ... }, because Book and Movie are the only members of the Media interface in the product-service subgraph.

Fixes

Avoid indirect lookup for directly resolved leaf fields

The planner now skips indirect path lookup when a leaf field already has a valid direct path.