Skip to content

Commit 230128b

Browse files
authored
fix(db-mongodb): remove limit from nested querying (#12464)
Fixes #12456
1 parent 23f4204 commit 230128b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/db-mongodb/src/queries/buildSearchParams.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ type SearchParam = {
2020

2121
const subQueryOptions = {
2222
lean: true,
23-
limit: 50,
2423
}
2524

2625
/**
@@ -184,7 +183,7 @@ export async function buildSearchParam({
184183
select[joinPath] = true
185184
}
186185

187-
const result = await SubModel.find(subQuery).lean().limit(50).select(select)
186+
const result = await SubModel.find(subQuery).lean().select(select)
188187

189188
const $in: unknown[] = []
190189

0 commit comments

Comments
 (0)