Best practice suggestion: Should I strip pagination information?
A lot of my queries include pagination information. Assuming I'm able to get all of a thing from my api, should I change the response to strip the pagination meta when returning to a collection?
({ total: data.total, items: data.items })
--> data.items
1 Reply
foreign-sapphire•4w ago
Yeah, we'll make this better soon with
https://github.com/TanStack/db/issues/345
GitHub
Add select Option to query-db-collection · Issue #345 · TanStack/db
Background Many APIs return data wrapped in metadata (pagination info, timestamps, etc.). Currently, query-db-collection expects queryFn to return just the array of items. This forces developers to...