PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Monday the 2nd of March, 2020

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[10:48:14] <paulcarroty> hey, how to fix "MongoError: Topology is closed, please connect"?
[10:49:14] <paulcarroty> read methods example from https://mongodb.github.io/node-mongodb-native/3.5/reference/ecmascriptnext/crud/
[18:19:39] <entry_lvl_dev> Banner.updateMany ({ projectId: req.params.projectId }, {
[18:19:41] <entry_lvl_dev> $set: { "bannerData.$[]": req.body}
[18:19:43] <entry_lvl_dev> },y
[18:21:20] <entry_lvl_dev> could somebody please help me out... req.body is an array of objects...i want to set req.body.bannerdata and update the database by projectId... when i use req.body.bannerData i get undefined... is there some shortcut where i can use req.body[foreach].bannerData
[18:23:33] <entry_lvl_dev> is this channel Live anyone out there?