Interface CollectionDescriptor

Information about a collection, used when nameOnly is false in ListCollectionsOptions.

Field

name - The name of the collections.

Field

options - The creation options for the collections.

See

  • ListCollectionsOptions
  • Db.listCollections
interface CollectionDescriptor {
    definition: CollectionDefinition<SomeDoc>;
    name: string;
}

Properties

Properties

The creation options for the collections (i.e. the vector, indexing, and defaultId fields).

name: string

The name of the collections.