When I add files to my Meteor collections, they are given a unique _id
in the form of Random.id
:
Random.id();
// "wjQyQ6sGjzvNMDLiJ"
If I add files directly from MongoDB to those same collections, they receive an _id
represented as Meteor.Collection.ObjectID
.
new Meteor.Collection.ObjectID();
// LocalCollection._ObjectID {_str: "b105582bc495617542af18e9"…}
I am curious why my application uses Random.id
. Could this be a setting passed down from previous versions?
The Meteor versions that were active when I developed my app:
<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="660b0312030914265748574852">[email protected]</a>
<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="305d5544555f421d405c5144565f425d70011e021e01">[email protected]</a>