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
feat: Add select option to extract items while preserving metadata (#551)
* feat: Add select option to extract items while preserving metadata
* test: add tests
* test: add more tests
* throw type mismatch error schema level
* chore: remove a trailing comment
* chore: add implementation examples
* doc: add select to options
* add changeset
* Improve select validation with better error messages and type tests
- Enhanced error messages to include package name, error type, received value type, and queryKey for easier debugging
- Added negative type test to verify TypeScript catches wrapped response data without select function
- Updated existing runtime tests to handle improved error messaging
- Fixed eslint warnings for unnecessary conditions
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
---------
Co-authored-by: Kyle Mathews <[email protected]>
Co-authored-by: Claude <[email protected]>
query-collection now supports a `select` function to transform raw query results into an array of items. This is useful for APIs that return data with metadata or nested structures, ensuring metadata remains cached while collections work with the unwrapped array.
0 commit comments