Skip to main content

Home > git-documentdb > GitDocumentDB > getCollections

GitDocumentDB.getCollections() method#

Get collections

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

Parameters#

ParameterTypeDescription
dirPathstringGet collections directly under the dirPath. dirPath is a relative path from localDir. Default is ''.
Returns:

Promise<ICollection []>

Promise < Collection[] >