Intresting - insertOne added _id to the input data
-
https://jira.mongodb.org/browse/NODE-1160
before: storkeData = {a: 1, b: 2}targetColl.insertOne(strokeData)
after: strokeData={a:1, b:2, _id: new ObjectId("639545affd84671b2a7f26ea")}
To avoid, we can add "forceServerObjectId", like:
targetColl.insertOne(strokeData, {forceServerObjectId: true})