AtlasOfLivingAustralia / ala-cas-5

ALA CAS 5 implementation
Apache License 2.0
0 stars 11 forks source link

Correct delete sentence #51

Closed vjrj closed 2 years ago

vjrj commented 2 years ago

As:

> db.services.find({serviceId: '^(https|imaps)://.*'});
{ "_id" : NumberLong(10000001), "serviceId" : "^(https|imaps)://.*", "name" : "HTTPS and IMAPS", "description" :
(....)

Before:

> db.services.deleteOne({serviceId: '(https|imaps)://.*'});
{ "acknowledged" : true, "deletedCount" : 0 }

After:

> db.services.deleteOne({serviceId: '^(https|imaps)://.*'});
{ "acknowledged" : true, "deletedCount" : 1 }