@dolittle/sdk.resources
Version:
Dolittle is a decentralized, distributed, event-driven microservice platform built to harness the power of events.
14 lines • 566 B
TypeScript
import { Constructor } from '@dolittle/types';
import { Document } from 'mongodb';
declare module 'mongodb' {
interface Db {
/**
* Returns a reference to a MongoDB Collection. If it does not exist it will be created implicitly.
*
* @param name - The collection name we wish to access.
* @returns Return the new Collection instance.
*/
collection<TSchema extends Document>(type: Constructor<TSchema>, options?: CollectionOptions): Collection<TSchema>;
}
}
//# sourceMappingURL=DbExtensions.d.ts.map