db.collection.createIndex( { “a.loc”: 1, “a.qty”: 1 }, { unique: true } )
– Reference
Last updated 6 years ago
Was this helpful?