Creating Multifield Indexes in Mongoose / MongoDB
Creating Multifield Indexes in Mongoose / MongoDB: a task in Terminal-Lego-15k (Harbor dataset). You are required to create a Mongoose schema that implements a compound (multi-field) index with a unique constraint. This is a common requirement when you need to ensure that a combination of fields…
The task
You are required to create a Mongoose schema that implements a compound (multi-field) index with a unique constraint. This is a common requirement when you need to ensure that a combination of fields is unique across all documents in a collection.
Part of PrimeIntellect/Terminal-Lego-15k.