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

Function normalizeOrderByPaths

packages/db/src/query/compiler/expressions.ts:55–72  ·  view source on GitHub ↗
(
  orderBy: OrderBy,
  collectionAlias: string,
)

Source from the content-addressed store, hash-verified

53}
54
55export function normalizeOrderByPaths(
56 orderBy: OrderBy,
57 collectionAlias: string,
58): OrderBy {
59 const normalizedOrderBy = orderBy.map((clause) => {
60 const basicExp = normalizeExpressionPaths(
61 clause.expression,
62 collectionAlias,
63 )
64
65 return {
66 ...clause,
67 expression: basicExp,
68 }
69 })
70
71 return normalizedOrderBy
72}

Calls 2

normalizeExpressionPathsFunction · 0.85
mapMethod · 0.45

Tested by

no test coverage detected