MCPcopy Create free account
hub / github.com/TanStack/db / extractAll

Function extractAll

packages/db/src/query/compiler/order-by.ts:265–270  ·  view source on GitHub ↗
(
            row: Record<string, unknown> | null | undefined,
          )

Source from the content-addressed store, hash-verified

263 if (allColumnExtractors) {
264 // Multi-column with all refs: extract all values and compare
265 const extractAll = (
266 row: Record<string, unknown> | null | undefined,
267 ) => {
268 if (!row) return row
269 return allColumnExtractors.map((extractor) => extractor(row))
270 }
271 return compare(extractAll(a), extractAll(b))
272 }
273 // Fallback: can't compare (shouldn't happen since we skip non-ref cases)

Callers 1

comparatorFunction · 0.85

Calls 1

mapMethod · 0.45

Tested by

no test coverage detected