Skip to content
This repository was archived by the owner on Mar 1, 2026. It is now read-only.

Commit 7707eed

Browse files
committed
fixes
1 parent 429438a commit 7707eed

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

packages/runtime/src/client/crud/operations/aggregate.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export class AggregateOperationHandler<Schema extends SchemaDef> extends BaseOpe
2727
if (key.startsWith('_') && value && typeof value === 'object') {
2828
// select fields
2929
Object.entries(value)
30+
.filter(([field]) => field !== '_all')
3031
.filter(([, val]) => val === true)
3132
.forEach(([field]) => {
3233
if (!selectedFields.includes(field)) selectedFields.push(field);

packages/runtime/test/client-api/delegate.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1115,7 +1115,7 @@ model Gallery {
11151115
).resolves.toEqual(1);
11161116
await expect(
11171117
client.ratedVideo.count({
1118-
where: { viewCount: 1 },
1118+
where: { viewCount: 2 },
11191119
}),
11201120
).resolves.toEqual(1);
11211121

0 commit comments

Comments
 (0)