Home > database >  Mongo, encountered a small problem
Mongo, encountered a small problem

Time:11-05

_id field is automatically generated, but if directing a saved object contained in the id field, using the object id value and will not be automatically generated,
But id the meaning of this field in a different table it may not be the same, there is no guarantee that it must be the only, so save in the case of repeated id to mongo complains,
Excuse me how should handle? Please bosses glad ~ ~