Closed symbianm closed 6 years ago
Based on Mongo documentation unique: true should be outside of the key object.
unique: true
key
https://github.com/jedireza/aqua/blob/ea085be912494561149e1899d68cb468e5e0d144/server/models/user.js#L203-L206
Proper structure example:
User.indexes = [ { key: { username: 1 }, unique: true }, { key: { email: 1 }, unique: true } ];
Yep. We need a PR just like https://github.com/jedireza/frame/pull/178
I've decided to archive this project. Thank you for your interest and contributions. https://github.com/jedireza/aqua#no-longer-maintained
Based on Mongo documentation
unique: true
should be outside of thekey
object.https://github.com/jedireza/aqua/blob/ea085be912494561149e1899d68cb468e5e0d144/server/models/user.js#L203-L206
Proper structure example: