Wskaźnik schematu Mongoose wielu kolumn
mySchema.index({field1: 1, field2: 1}, {unique: true});
Alert Anteater
mySchema.index({field1: 1, field2: 1}, {unique: true});