import { Collection } from "https://deno.land/x/atlas_sdk@v1.1.3/client.ts";
Constructors
new
Collection(name: string, database: Database)Methods
countDocuments(filter?: Document, options?: { limit?: number; skip?: number; }): Promise<number>
deleteMany(filter: Document): Promise<{ deletedCount: number; }>
estimatedDocumentCount(): Promise<number>
insertMany(docs: T[]): Promise<{ insertedIds: string[]; }>
replaceOne(): Promise<{ matchedCount: number; modifiedCount: number; upsertedId?: string; }>
updateMany(): Promise<{ matchedCount: number; modifiedCount: number; upsertedId?: string; }>