Hi Edwin,
take a look at Mongo.uuid/1 (Mongo — mongodb-driver v1.2.1). I guess that’s what you are looking for.
Mongo.uuid/1