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 926a626 commit 8f595f8Copy full SHA for 8f595f8
lib/validators/comparison/unique.js
@@ -17,7 +17,9 @@ Astro.createValidator({
17
// If the "_id" fields is present, then object is being updated.
18
// In this case, ignore the object itself.
19
if (this._id) {
20
- selector._id = {$ne: this._id};
+ selector._id = {
21
+ $ne: this._id
22
+ };
23
}
24
25
// Check if a record with the given field value exists.
0 commit comments