Skip to content

Commit

Permalink
fix(core): allow getAll() with no limit
Browse files Browse the repository at this point in the history
  • Loading branch information
minenwerfer committed Oct 10, 2024
1 parent 49a447d commit 0081111
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/core/src/functions/getAll.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,11 @@ const internalGetAll = async <TContext extends Context>(
})
}

pipeline.push({
$limit: limit,
})
if( limit ) {
pipeline.push({
$limit: limit,
})
}

if( project ) {
const projection = normalizeProjection(project, context.description)
Expand Down

0 comments on commit 0081111

Please sign in to comment.