Collection | mongodb (original) (raw)

aggregate

Returns AggregationCursor<T>

bulkWrite

count

countDocuments

createIndex

createIndexes

createSearchIndex

A promise that resolves to the name of the new search index.

createSearchIndexes

A promise that resolves to an array of the newly created search index names.

deleteMany

deleteOne

distinct

Returns Promise<Flatten<WithId<TSchema>[Key]>[]>

Returns Promise<Flatten<WithId<TSchema>[Key]>[]>

Returns Promise<Flatten<WithId<TSchema>[Key]>[]>

drop

dropIndex

dropIndexes

dropSearchIndex

estimatedDocumentCount

find

Returns FindCursor<T>

findOne

Returns Promise<null | T>

Returns Promise<null | T>

Parameters

Returns Promise<null | T>

findOneAndDelete

Returns Promise<null | WithId<TSchema>>

findOneAndReplace

Returns Promise<ModifyResult<TSchema>>

Returns Promise<null | WithId<TSchema>>

findOneAndUpdate

Returns Promise<ModifyResult<TSchema>>

Returns Promise<null | WithId<TSchema>>

Returns Promise<null | WithId<TSchema>>

indexes

indexExists

indexInformation

initializeOrderedBulkOp

initializeUnorderedBulkOp

insertMany

insertOne

isCapped

listIndexes

listSearchIndexes

options

rename

replaceOne

updateMany

Returns Promise<UpdateResult<TSchema>>

updateOne

Returns Promise<UpdateResult<TSchema>>

updateSearchIndex

Returns Promise<void>

watch

Returns ChangeStream<TLocal, TChange>