Home > git-documentdb > GitDocumentDB > collection
#
GitDocumentDB.collection() methodGet a collection
Signature:#
ParametersParameter | Type | Description |
---|---|---|
collectionPath | CollectionPath | relative path from localDir. Sub-directories are also permitted. e.g. 'pages', 'pages/works'. |
options | CollectionOptions |
A child collection of GitDocumentDB.rootCollection
#
Remarks- Notice that this function just read an existing directory. It does not make a new sub-directory.