उदाहरण के लिए मैं '2012-01-01' ("समय": ISODate ("2011-12-31T13: 52: 40Z") पर सभी रिकॉर्ड अपडेट करना चाहता हूं।मोंगो कंसोल में दिनांक फ़ील्ड को कैसे अपडेट करें?
db.test.update({ time : '2012-01-01' }, false, true )
वापसी त्रुटि:
Assert failed : need an object
Error("Printing Stack Trace")@:0
()@shell/utils.js:35
("assert failed : need an object")@shell/utils.js:46
(false,"need an object")@shell/utils.js:54
([object Object],false,true)@shell/collection.js:189
@(shell):1
Wed Jan 11 17:52:35 uncaught exception: assert failed : need an object
त्रुटि क्या है? –