We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6981af1 commit 16d5428Copy full SHA for 16d5428
packages/runtime/src/client/crud/validator.ts
@@ -1315,13 +1315,13 @@ export class InputValidator<Schema extends SchemaDef> {
1315
let result = true;
1316
for (const [key, value] of Object.entries(val)) {
1317
if (AGGREGATE_OPERATORS.includes(key as any)) {
1318
- continue; // aggregation field
+ // aggregation field
1319
+ continue;
1320
}
1321
if (LOGICAL_COMBINATORS.includes(key as any)) {
- if (!enumerate(value).every((v) => this.onlyAggregationFields(v))) {
1322
- // logical operators
1323
- result = false;
1324
- break;
+ // logical operators
+ if (enumerate(value).every((v) => this.onlyAggregationFields(v))) {
1325
1326
1327
result = false;
0 commit comments