How to add index to a sub field? #495
Unanswered
jonwhittlestone
asked this question in
Question
Replies: 1 comment
-
For this you need to use the respective field in the Settings inner class: https://beanie-odm.dev/tutorial/indexes/#multi-field-indexes |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello.
I have the following object with example schema in mongodb.
How would I add an index to
windows.windowName
?I've tried the following and it didn't work - ie. the indexes weren't created when I inserted some documents.
Tried
thanks
Beta Was this translation helpful? Give feedback.
All reactions