Создать составной индекс mongodb

Индекс по userId↑ и createdAt↓

db.orders.createIndex({userId: 1, createdAt: -1}, {background: true})
more mongodb all 20 commands →