node-mongo-tenant icon indicating copy to clipboard operation
node-mongo-tenant copied to clipboard

Removes the preserveUniqueKey flag from index specification after using it

Open IvoFritsch opened this issue 5 years ago • 0 comments

The flag presence on the index specification was causing mongoDB to throw the following error:

The field 'preserveUniqueKey' is not valid for an index specification. Specification: { key: { associatedInsurance: 1.0 }, ..., preserveUniqueKey: true }

IvoFritsch avatar Sep 01 '20 18:09 IvoFritsch