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

Method listCollections

src/db.ts:363–372  ·  view source on GitHub ↗
(
    filter: Document = {},
    options: ListCollectionsOptions & Abortable = {}
  )

Source from the content-addressed store, hash-verified

361 | CollectionInfo
362 >(filter?: Document, options?: ListCollectionsOptions & Abortable): ListCollectionsCursor<T>;
363 listCollections<
364 T extends Pick<CollectionInfo, 'name' | 'type'> | CollectionInfo =
365 | Pick<CollectionInfo, 'name' | 'type'>
366 | CollectionInfo
367 >(
368 filter: Document = {},
369 options: ListCollectionsOptions & Abortable = {}
370 ): ListCollectionsCursor<T> {
371 return new ListCollectionsCursor<T>(this, filter, resolveOptions(this, options));
372 }
373
374 /**
375 * Rename a collection.

Callers 15

collectionsMethod · 0.95
operations.tsFile · 0.80
runUnifiedTestFunction · 0.80
index.jsFile · 0.80
setupDatabaseFunction · 0.80
collations.test.jsFile · 0.80
collection.test.tsFile · 0.80
view.test.tsFile · 0.80

Calls 1

resolveOptionsFunction · 0.90

Tested by

no test coverage detected