Hi all, I’ve a node js application. How i execute this native query in mongoose.
db.getCollection("mycollection").insert({
idCustomer: "aa",
process: "aa",
createdAtTimestamp: new Timestamp(),
createdAtDate: new Date(),
});
I want the monngo db new Date() like the now() in sql
Thanks