CollectionInfo¶
interface CollectionInfo
Information about a collection, as returned by the ListCollections command.
External resources¶
Types¶
Type¶
enum Type : Enum<CollectionInfo.Type>
The kind of collection.
Properties¶
idIndex¶
abstract val idIndex: BsonDocument?
Information on the index on the _id field.
If nameOnly was specified, contains null.
name¶
options¶
abstract val options: BsonDocument
The options that were passed when creating the collection.
Should match CreateCollectionOptions.
If nameOnly was specified, contains an empty document.
readOnly¶
true if this collection is read-only.
If nameOnly was specified, contains null.
type¶
abstract val type: CollectionInfo.Type
Whether it's a regular collection, a view, or a time series.
Note: if nameOnly is specified, the official driver does not support this field.