Details
Description
Assertion is received when update() is not supplied any parameters. This should be an error instead.
Here is an example in mongo shell:
> d
pcat.products
> d.update()
assert failed : need a query
Error("Printing Stack Trace")@:0
()@shell/utils.js:35
("assert failed : need a query")@shell/utils.js:46
(undefined,"need a query")@shell/utils.js:54
()@shell/collection.js:188
@(shell):1
Wed Oct 31 00:41:29 uncaught exception: assert failed : need a query
> db.getLastError()
null
> db.getLastErrorObj()
>