This example is from the MongoDB documentation:
{
"_id": ObjectId(...),
"name": "John Doe",
"address": {
"street": "Main",
"zipcode": "53511",
"state": "WI"
}
}
You can create an index on the address.zipcode field, using the following specification:
db.people.createIndex( { "address.zipcode": 1 } )
Does it mean that only one John Doe could live for the zip code 53511?
I'm a bit confused!