elections-cpl.api.hscc.bdpa.org • Docs
elections-cpl.api.hscc.bdpa.org / lib/mongo-schema / initializeDb
initializeDb(
__namedParameters
):Promise
<void
>
Creates a database and initializes its collections. If the database does not exist before calling this function, it will be created first. This function should only be called on empty or brand new databases and not on databases with pre-existing collections.
• __namedParameters
• __namedParameters.name: string
The name or alias of the database to initialize.
Promise
<void
>