Skip to content

Commit 5706d80

Browse files
committed
simplify drizzle query by removing offset option
1 parent 798c94b commit 5706d80

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/plugin-drizzle/src/drizzle-field-builder.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ export class DrizzleObjectFieldBuilder<
210210
let typeName: string | undefined;
211211

212212
const getQuery = (args: PothosSchemaTypes.DefaultConnectionArguments, ctx: {}) => {
213-
const { limit, offset, orderBy, where, ...fieldQuery } =
213+
const { limit, orderBy, where, ...fieldQuery } =
214214
(typeof query === 'function' ? query(args, ctx) : query) ?? {};
215215

216216
const { cursorColumns, columns, ...connectionQuery } = drizzleCursorConnectionQuery({
@@ -231,7 +231,6 @@ export class DrizzleObjectFieldBuilder<
231231
...columns,
232232
},
233233
limit: Math.abs(limit ?? connectionQuery.limit),
234-
offset: offset ?? connectionQuery.offset,
235234
},
236235
cursorColumns,
237236
};

0 commit comments

Comments
 (0)