( orderBy: OrderBy, collectionAlias: string, )
| 53 | } |
| 54 | |
| 55 | export 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 | } |
no test coverage detected