Skip to main content

Home > git-documentdb > Collection > (constructor)

Collection.(constructor)#

Constructor

Signature:
constructor(gitDDB: GitDDBInterface, collectionPathFromParent?: CollectionPath, parent?: ICollection, options?: CollectionOptions);

Parameters#

ParameterTypeDescription
gitDDBGitDDBInterface
collectionPathFromParentCollectionPathA relative collectionPath from a parent collection.
parentICollectionA parent collection of this collection.
optionsCollectionOptions

Exceptions#

Err.InvalidCollectionPathCharacterError

Err.InvalidCollectionPathLengthError