elections-cpl.api.hscc.bdpa.org • Docs
elections-cpl.api.hscc.bdpa.org / lib/mongo-schema / getAliasFromName
getAliasFromName(
nameActual
):Promise
<string
[]>
Accepts a database name (or an alias) and returns one or more aliases. If the named database has no aliases listed in the schema, said database name is returned as a single-element array. If said database name is not listed in the schema, an error is thrown.
• nameActual: string
Promise
<string
[]>