Skip to content

CollectionInfo

interface CollectionInfo

Information about a collection, as returned by the ListCollections command.

External resources

Types

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

abstract val name: String

The name of the collection.

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

abstract val readOnly: Boolean?

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.

uuid

abstract val uuid: Uuid?

The UUID of the collection.

If nameOnly was specified, contains null.