method Collection.prototype.replaceOneimport { Collection } from "https://deno.land/x/mongo@v0.33.0/src/collection/mod.ts"; replaceOne(filter: Filter<T>,replacement: InsertDocument<T>,options?: UpdateOptions,): Promise<{ upsertedId: ObjectId | undefined; upsertedCount: number; matchedCount: number; modifiedCount: number; }>Replace a single document matching the given filter Parametersfilter: Filter<T>The query used to match the document replacement: InsertDocument<T>The replacement document optionaloptions: UpdateOptionsAdditional options for the operation ReturnsPromise<{ upsertedId: ObjectId | undefined; upsertedCount: number; matchedCount: number; modifiedCount: number; }>The number of documents matched, modified, and upserted