E11000 duplicate key error collection: *** index: _id_ dup key

E11000 duplicate key error collection: ***  index: _id_dup key: { : “617141a3cd9d0a65d02f6c23” }

The reason is that:

assign(record,  attrs);

await new VkPrize(newRecord).save();

Attrs contains the _id field, causing the same error to be reported when the _id is executed again.

Read More: