monger.util

Provides various utility functions, primarily for working with document ids.

GetDocumentId

protocol

members

get-id

(get-id input)
Returns document id

object-id

(object-id)(object-id s)
Returns a new BSON object id, or converts str to BSON object id

random-str

(random-str n num-base)
Generates a secure random string

random-uuid

(random-uuid)
Generates a secure random UUID string