How to define indexes for Mongodb collections in Dove (v5) #2757
Unanswered
nathanbrizzee-cdcr
asked this question in
Q&A
Replies: 1 comment
-
Late answer: for example in the users.class
|
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
Uh oh!
There was an error while loading. Please reload this page.
-
I was wondering what the best (Feathers) way is to define Mongodb collection indexes in the Dove release (v5)? In v4, indexes are defined in the model file. With the new schemas / resolvers files, should there be something in the migrations folder for Mongo? Since Mongo creates collections on the fly, the indexes need to be applied after creation. Is this something we should do in the constructor of the class?
Beta Was this translation helpful? Give feedback.
All reactions