Skip to content

Commit 59ee37e

Browse files
更新 index.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 702fe02 commit 59ee37e

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

packages/drivers/memory/src/index.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -452,8 +452,10 @@ export class MemoryDriver implements Driver {
452452
fieldValue >= compareValue[0] &&
453453
fieldValue <= compareValue[1];
454454
default:
455-
console.warn(`[MemoryDriver] Unsupported operator: ${operator}`);
456-
return false;
455+
throw new ObjectQLError({
456+
code: 'UNSUPPORTED_OPERATOR',
457+
message: `[MemoryDriver] Unsupported operator: ${operator}`,
458+
});
457459
}
458460
}
459461

0 commit comments

Comments
 (0)