You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The .remove() command in mongojs does not seem to obey the Mongo spec in removing only one document. The following is from the Mongo documentation:
The following operation deletes a single document from the bios collection where the turing field equals true:
db.bios.remove({turing: true},1)
but this doesn't seem to be properly implemented in mongojs -- instead, all documents that match the query are deleted.
(I also can't find any documentation for what the callback function in .remove() returns for "value." I'm interpreting it as the number of documents that matched the condition and were deleted.)
The text was updated successfully, but these errors were encountered:
The .remove() command in mongojs does not seem to obey the Mongo spec in removing only one document. The following is from the Mongo documentation:
but this doesn't seem to be properly implemented in mongojs -- instead, all documents that match the query are deleted.
(I also can't find any documentation for what the callback function in .remove() returns for "value." I'm interpreting it as the number of documents that matched the condition and were deleted.)
The text was updated successfully, but these errors were encountered: