Mongo indexes `unique: 1` is in wrong place
Closed this issue · 2 comments
symbianm commented
Based on Mongo documentation unique: true
should be outside of the key
object.
Lines 203 to 206 in ea085be
Proper structure example:
User.indexes = [
{ key: { username: 1 }, unique: true },
{ key: { email: 1 }, unique: true }
];
jedireza commented
Yep. We need a PR just like jedireza/frame#178
jedireza commented
I've decided to archive this project. Thank you for your interest and contributions.
https://github.com/jedireza/aqua#no-longer-maintained