CRUD
Code | Result |
---|---|
|
db.group.find() [ { "_id": {"$oid": "5fa3035932b87a0c60a6ed1a"}, "cname": "New users", "gid": "users" } ] |
Code | Result |
---|---|
|
[ { "acknowledged": true, "deletedCount": 1 } ] |
Code | Result |
---|---|
|
[
{
"acknowledged": true,
"deletedCount": 23
}
] |
Code | Result |
---|---|
|
db.group.find() [ { "_id": {"$oid": "5fa3035932b87a0c60a6ed1a"}, "cname": "My users", "gid": "users" } ] |
Though the attribute is to be deleted the operation requires a dummy value for syntactical reasons. |