Skip to content

Commit

Permalink
[drizzle] fix bug in conneciton logic that caused first node after a …
Browse files Browse the repository at this point in the history
…cursor to be skipped
  • Loading branch information
hayes committed Dec 28, 2024
1 parent 336f96e commit 67295e5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/strange-pugs-confess.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@pothos/plugin-drizzle": patch
---

Fix drizzle cursors skipping first node after a cursor
1 change: 0 additions & 1 deletion packages/plugin-drizzle/src/utils/cursors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,6 @@ export function drizzleCursorConnectionQuery({
columns,
orderBy: parsedOrderBy.sql,
limit,
offset: cursor ? 1 : 0,
where: ops.and(...whereClauses),
};
}
Expand Down

0 comments on commit 67295e5

Please sign in to comment.