Creating and configuring MongoDB collections in Orionjs
createCollection
function accepts the following options:
'mongo'
(default): MongoDB ObjectId strings (time-based)'random'
: Random string IDs'uuid'
: UUID v7 stringstypedId
:
typedId
from the schema and use it to create prefixed IDs.