Skip to content

Commit

Permalink
chore: offset should be to + 1 not from + to in function document…
Browse files Browse the repository at this point in the history
…ation. (#516)

* Update PostgrestTransformBuilder.ts

* Update PostgrestTransformBuilder.ts

---------

Co-authored-by: Bobbie Soedirgo <[email protected]>
  • Loading branch information
abhadu and soedirgo authored May 29, 2024
1 parent 7fc5fcb commit 24dcbde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PostgrestTransformBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export default class PostgrestTransformBuilder<
}

/**
* Limit the query result by starting at an offset (`from`) and ending at the offset (`from + to`).
* Limit the query result by starting at an offset `from` and ending at the offset `to`.
* Only records within this range are returned.
* This respects the query order and if there is no order clause the range could behave unexpectedly.
* The `from` and `to` values are 0-based and inclusive: `range(1, 3)` will include the second, third
Expand Down

0 comments on commit 24dcbde

Please sign in to comment.