dce-mango
Version:
Harvard DCE's Non-relational DB Wrapper.
12 lines (11 loc) • 471 B
TypeScript
import MongoDB from 'mongodb';
import CollectionOpts from '../types/CollectionOpts';
/**
* Initialize a collection.
* @author Gabe Abrams
* @param collectionName the name of the collection
* @param options the options tied to the collection
* @returns a Promise which resolves to the Mongo collection
*/
declare const initCollection: (collectionName: string, options: CollectionOpts) => Promise<MongoDB.Collection<MongoDB.Document>>;
export default initCollection;