Skip to content

Commit f66d617

Browse files
jordanhunt22Convex, Inc.
authored andcommitted
[Bugfix] Use count() in queryTable system UDF (#39882)
GitOrigin-RevId: 2f33688f9f3bed30ebac8e9ce2b0aa11a32f305c
1 parent 6ec3be5 commit f66d617

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

npm-packages/system-udfs/convex/_system/cli/queryTable.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { v } from "convex/values";
77
export default queryGeneric({
88
args: { tableName: v.string() },
99
handler: async ({ db }, { tableName }) => {
10-
await db.query(tableName as TableNames).collect();
10+
await db.query(tableName as TableNames).count();
1111
return Math.random();
1212
},
1313
});

0 commit comments

Comments
 (0)