$objectId Returns a random BSON ObjectId. Example¶ Template { "id": "$objectId" } Output { "id": { "$oid": "5d866a47981f6d0164b8232a" } }