Skip to content

Latest commit

 

History

History
26 lines (15 loc) · 801 Bytes

File metadata and controls

26 lines (15 loc) · 801 Bytes

elections-cpl.api.hscc.bdpa.orgDocs


elections-cpl.api.hscc.bdpa.org / lib/mongo-schema / getAliasFromName

Function: 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.

Parameters

nameActual: string

Returns

Promise<string[]>

Source

lib/mongo-schema/index.ts:185