UNPKG

@notross/mongo-singleton

Version:

A lightweight, zero-fuss way to get a single shared MongoDB connection across your Node.js codebase.

8 lines 327 B
import { GetCollection, GetDatabase, InitClientProps } from './types'; import { MongoSingleton } from './mongo-singleton'; export declare const useClient: (clientId: string, props?: InitClientProps) => { client: MongoSingleton; collection: GetCollection; db: GetDatabase; }; //# sourceMappingURL=singletons.d.ts.map