* Limit the number of rows returned by the query * `orderBy` is required for `limit` * * @param count - Maximum number of rows to return * @returns A QueryBuilder with the limit applied * * @example * ```ts * // Get top 5 posts by likes * query * .from({ posts: postsC
(count: number)
| 736 | * ``` |
| 737 | */ |
| 738 | limit(count: number): QueryBuilder<TContext> { |
| 739 | return new BaseQueryBuilder({ |
| 740 | ...this.query, |
| 741 | limit: count, |
| 742 | }) as any |
| 743 | } |
| 744 | |
| 745 | /** |
| 746 | * Skip a number of rows before returning results |
no outgoing calls