MCPcopy Index your code
hub / github.com/TanStack/db / offset

Method offset

packages/db/src/query/builder/index.ts:762–767  ·  view source on GitHub ↗

* Skip a number of rows before returning results * `orderBy` is required for `offset` * * @param count - Number of rows to skip * @returns A QueryBuilder with the offset applied * * @example * ```ts * // Get second page of results * query * .from({ posts: postsCollect

(count: number)

Source from the content-addressed store, hash-verified

760 * ```
761 */
762 offset(count: number): QueryBuilder<TContext> {
763 return new BaseQueryBuilder({
764 ...this.query,
765 offset: count,
766 }) as any
767 }
768
769 /**
770 * Specify that the query should return distinct rows.

Calls

no outgoing calls

Tested by 2

createOrderByTestsFunction · 0.64
createOrderByBugTestsFunction · 0.64