[solved] Meteor mongo update

Hello everyone
Can someone tell me why this update does not work?
Below the console sequence. Of course it does not work in meteor either!
Thank you for your answers
YC

meteor:PRIMARY> db.bqeoperations.find({opb_date:ISODate("2018-02-27T23:00:00Z")}).pretty()
{
	"_id" : ObjectId("3d0e5d208f053a0c8a8608d0"),
	"opb_nom" : "INGCC",
	"opb_date" : ISODate("2018-02-27T23:00:00Z"),
	"opb_type" : "VIR",
	"opb_libelle" : "Retaite CIPAV",
	"opb_montant" : 170.94,
	"opb_douc" : "C",
	"opb_analytique" : "Retraite",
	"opb_releve" : false,
	"opb_codeAuto" : "CIPAV",
	"opb_dateCrea" : ISODate("2018-01-14T08:26:33.798Z"),
	"opb_dateModif" : ISODate("2018-01-14T08:26:33.798Z")
}
meteor:PRIMARY> db.bqeoperations.update({opb_date:ISODate("2018-02-27T23:00:00Z")},{opb_douc:'D'})
WriteResult({ "nMatched" : 1, "nUpserted" : 0, "nModified" : 1 })
meteor:PRIMARY> db.bqeoperations.find({opb_date:ISODate("2018-02-27T23:00:00Z")}).pretty()
{
	"_id" : ObjectId("4c191d64575173847d65823f"),
	"opb_nom" : "INGCC",
	"opb_date" : ISODate("2018-02-27T23:00:00Z"),
	"opb_type" : "VIR",
	"opb_libelle" : "Retaite CIPAV",
	"opb_montant" : 170.94,
	"opb_douc" : "C",
	"opb_analytique" : "Retraite",
	"opb_releve" : false,
	"opb_codeAuto" : "CIPAV",
	"opb_dateCrea" : ISODate("2018-01-14T08:29:13.127Z"),
	"opb_dateModif" : ISODate("2018-01-14T08:29:13.127Z")
}
meteor:PRIMARY>

if you are setting a value, your update document should have at-least one update operator.

i.e. { $set: {opb_douc:'D' } }

try this:

db.bqeoperations.update({opb_date:ISODate("2018-02-27T23:00:00Z")},{ $set: {opb_douc:'D' } })

OK, it works better with the $set …

Thank you for your help
YC