MCPcopy
hub / github.com/mongodb/node-mongodb-native / indexInformation

Method indexInformation

src/collection.ts:774–781  ·  view source on GitHub ↗
(
    options?: IndexInformationOptions
  )

Source from the content-addressed store, hash-verified

772 ): Promise<IndexDescriptionCompact | IndexDescriptionInfo[]>;
773 indexInformation(): Promise<IndexDescriptionCompact>;
774 async indexInformation(
775 options?: IndexInformationOptions
776 ): Promise<IndexDescriptionCompact | IndexDescriptionInfo[]> {
777 return await this.indexes({
778 ...options,
779 full: options?.full ?? false
780 });
781 }
782
783 /**
784 * Gets an estimate of the count of documents in a collection using collection metadata.

Callers

nothing calls this directly

Calls 1

indexesMethod · 0.95

Tested by

no test coverage detected