You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This will not work in MongoDB because both items include a list item with mike.[index].first == value. However, this is valid in Mongomock and causes my tests to fail.
My usecase: I have a login system that allows a user to have multiple login methods and am using an index of type [("login_methods.identifier", 1), ("login_methods.login_type", 1)] to prevent multiple users from having the same login method (while login_methods is a list).
The text was updated successfully, but these errors were encountered:
So, MongoDB allows using indexes on lists like this:
Link to documentation
This will not work in MongoDB because both items include a list item with
mike.[index].first == value
. However, this is valid in Mongomock and causes my tests to fail.My usecase: I have a login system that allows a user to have multiple login methods and am using an index of type
[("login_methods.identifier", 1), ("login_methods.login_type", 1)]
to prevent multiple users from having the same login method (whilelogin_methods
is a list).The text was updated successfully, but these errors were encountered: