import { Collection } from "https://deno.land/x/mongo@v0.31.1/src/collection/collection.ts";
Methods
countDocuments(filter?: Filter<T>, options?: CountOptions): Promise<number>
createIndexes(options: CreateIndexOptions)
deleteMany(filter: Filter<T>, options?: DeleteOptions): Promise<number>
drop(options?: DropOptions): Promise<void>
dropIndexes(options: DropIndexOptions)
estimatedDocumentCount(): Promise<number>
findAndModify(filter?: Filter<T>, options?: FindAndModifyOptions<T>): Promise<T | undefined>
Find and modify a document in one, returning the matching document.
insertMany(docs: InsertDocument<T>[], options?: InsertOptions): Promise<{ insertedIds: (ObjectId | Required<InsertDocument<T>>["_id"])[]; insertedCount: number; }>