Schema#index() does't support alias #13276
Labels
enhancement
This issue is a user-facing general improvement that doesn't fix a bug or add a new feature
Milestone
Prerequisites
Mongoose version
7.0.3
Node.js version
18.13.0
MongoDB server version
6
Typescript version (if applicable)
No response
Description
as below
Steps to Reproduce
This is just for simplification. I know it doesn't make sense to index (b-tree) on _id which has already been done automatically. I actually use a lot of nested compound unique indexes. That's why I desperately need alias.
Expected Behavior
No response
The text was updated successfully, but these errors were encountered: