You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: improve query inlining to handle nested field merging correctly 🔄
This refactors the fragment inlining logic to properly handle merging fields with the same name but different selection sets, especially when fields have arguments.
- Rewrote the field merging algorithm to properly handle nested selections
- Added handling for GraphQL arguments to prevent duplicates and ensure correct merging
- Improved type safety with type guards and better TypeScript practices
- Added normalization for value nodes to create consistent keys
- Updated test to use snapshot testing instead of comparing strings
- Fixed a bug where fields with the same name but different arguments were incorrectly merged
0 commit comments