I can't get @unique to be enforced with MongoDB. S...
# orm-help
a
I can't get @unique to be enforced with MongoDB. Submit a user with the same email address twice in a row and get two records in my DB.
r
@Andy Dietler check if you're indexes are correctly otherwise delete the collection and retry?
👍 1
a
many thanks. I deleted the whole collection and redeployed and my index added the unique requirement
r
Cool. Glad it helped! 🙂