How do I set the updatedAt timestamp using mongoose during a data migration
<p>I am doing a data migration from MS SQL to MongoDB. I am using mongoose and in my schema I set the timestamp property to true.</p>

<pre><code>{
  timestamps: true
}
</code></pre>

<p>I then try and set the values of the createdAt and updatedAt fields. When inserting a record. The createdAt field saves correctly, however, the updatedAt field is set to whatever the createdAt field is.</p>

<p>Is this the standard behaviour or am I doing something wrong?</p>