collection.indexes

Mongo documentation

Returns an array that holds a list of documents that identify and describe the existing indexes on the collection.

Arguments

  1. [callback] (function)

Returns

A promise.

Example

users.indexes().then((indexes) => {})

results matching ""

    No results matching ""