Repository navigation
Commit 37fdcdd
committed
fix(schema_definition): omit object grouping leaf type for scalar grouped-by fields
Addresses review feedback from PR #1461. A paginated collection field such as `WidgetCurrency.widget_names` has an object
type (`StringConnection`) but a scalar grouped-by field, which recorded an unused `object_grouping_leaf_type_name`.
- Check `type_for_derived_types` rather than `type`. Checking the grouped-by field's type instead would add the key to
every `Date`/`DateTime` grouped-by field, where the query engine never reads it.
Generated with Claude Code1 parent 29f691b commit 37fdcdd
4 files changed
Lines changed: 2 additions & 3 deletions
File tree
- config/schema
- artifacts_with_apollo
- artifacts
- elasticgraph-schema_definition
- lib/elastic_graph/schema_definition/schema_elements
- spec/unit/elastic_graph/schema_definition/runtime_metadata/object_types_by_name
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8880 | 8880 | | |
8881 | 8881 | | |
8882 | 8882 | | |
8883 | | - | |
8884 | 8883 | | |
8885 | 8884 | | |
8886 | 8885 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9061 | 9061 | | |
9062 | 9062 | | |
9063 | 9063 | | |
9064 | | - | |
9065 | 9064 | | |
9066 | 9065 | | |
9067 | 9066 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
847 | 847 | | |
848 | 848 | | |
849 | 849 | | |
850 | | - | |
| 850 | + | |
851 | 851 | | |
852 | 852 | | |
853 | 853 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| 92 | + | |
92 | 93 | | |
93 | 94 | | |
94 | 95 | | |
| |||
0 commit comments