(
options:
| {
where?: BasicExpression<boolean>
orderBy?: OrderBy
limit?: number
}
| undefined
| null,
)
| 497 | * ``` |
| 498 | */ |
| 499 | export function parseLoadSubsetOptions( |
| 500 | options: |
| 501 | | { |
| 502 | where?: BasicExpression<boolean> |
| 503 | orderBy?: OrderBy |
| 504 | limit?: number |
| 505 | } |
| 506 | | undefined |
| 507 | | null, |
| 508 | ): { |
| 509 | filters: Array<SimpleComparison> |
| 510 | sorts: Array<ParsedOrderBy> |
| 511 | limit?: number |
| 512 | } { |
| 513 | if (!options) { |
| 514 | return { filters: [], sorts: [] } |
| 515 | } |
| 516 | |
| 517 | return { |
| 518 | filters: extractSimpleComparisons(options.where), |
| 519 | sorts: parseOrderByExpression(options.orderBy), |
| 520 | limit: options.limit, |
| 521 | } |
| 522 | } |
no test coverage detected