updateOne(filter, update, { timestamps: { createdAt: false, updatedAt: true } }) #3934
Labels
new feature
This change adds new functionality, like a new method or class
Milestone
Rather than raise two feature requests I'll just add this one with a minor but important extension to the timestamps functionality.
The reasoning for this is that when writing tests, I have to drop to the native driver to override auto-time-stamping, which just makes things messy. I want to create a variety of documents in a variety of created/updated periods.
Reasoning for this is that we're growing our developers team fast. I wrote the system using ObjectID's created functionality, but I really need updatedAt functionality too. Having two ways to get the created time is going to cause problems, as using createdAt is the obvious one, but using native ObjectID (in my opinion) is the correct one.
The text was updated successfully, but these errors were encountered: