CollectionOperations¶
interface CollectionOperations<Document : Any> : BaseOperations
Interface grouping MongoDB operations relating to collection administration.
Inheritors¶
Properties¶
context¶
@LowLevelApi
abstract val context: BsonContext
Functions¶
drop¶
abstract fun drop(options: DropOptions<Document>.() -> Unit = {})
Removes an entire collection from the database.
Example¶
Using with filtered collections¶
When using filtered collections, all elements matching the filter are removed. Other documents are not impacted, and the collection is not deleted.