--
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To post to this group, send email to mongod...@googlegroups.com.
To unsubscribe from this group, send email to mongodb-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.
Unique just applied to the documents in the collection, not the
embedded elements in the document. You would only want to add an
embedded doc if it didn't already have that email, to keep the value
unique within the document. You can do this in the update query +
operations.
> --
> You received this message because you are subscribed to the Google Groups
> "mongodb-user" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/mongodb-user/-/U7OOWF_rvCsJ.