Anywhere
new Mongo.ObjectID([hexString])
import { Mongo } from 'meteor/mongo'
Source Create a Mongo-style ObjectID
. If you don't specify a hexString
, the ObjectID
will generated randomly (not using MongoDB's ID construction rules).
Arguments
- hexString String
-
Optional. The 24-character hexadecimal contents of the ObjectID to create
Please login to continue.