Hacker News new | ask | show | jobs
by bdarfler 5470 days ago
As mathias_10gen points out below this is the default behavior of ObjectId. You just have to be carful if you decide to override the _id field.
1 comments

It isn't just the _id field, it's any indexed field.