Skip to main content

Home > git-documentdb > Collection > getCollections

Collection.getCollections() method#

Get collections directly under the specified dirPath.

Signature:
getCollections(dirPath?: string): Promise<ICollection[]>;

Parameters#

ParameterTypeDescription
dirPathstringdirPath is a relative path from collectionPath. Default is ''.
Returns:

Promise<ICollection []>

Array of Collections which does not include ''.