Hi there :) I'm working on a golang app linked to mongo DB (I use the official driver: mongo-go
) and here's my problem,I want to execute this function
db.rmTickets.find().forEach(function(doc) {
doc.created=new Date(doc.created)
doc.updated=new Date(doc.updated)
doc.deadline=new Date(doc.deadline)
doc.dateEstimationDelivery=new Date(doc.dateEstimationDelivery)
doc.dateTransmitDemand=new Date(doc.dateTransmitDemand)
doc.dateTransmitQuotation=new Date(doc.dateTransmitQuotation)
doc.dateValidationQuotation=new Date(doc.dateValidationQuotation)
doc.dateDeliveryCS=new Date(doc.dateDeliveryCS)
db.rmTickets.save(doc)
})
I see on godoc that a Database.RunCommand()
exists but I'm not sure about how to use it.
If someone can help :)
Thanks