Skip to content

mongoConnection

function mongoConnection(options, subpath?): MongoConnection;

Defined in: src/storage/mongodb.ts:70

Build a MongoConnection from a borrowed client or a url.

Parameter Type Default value
options { client?: MongoClient; dbName: string; url?: string; } undefined
options.client? MongoClient undefined
options.dbName string undefined
options.url? string undefined
subpath? string SUBPATH

MongoConnection