Home > git-documentdb > Collection
Collection class#
Documents under a collectionPath are gathered together in a collection.
Signature:Remarks#
In a collection API, shortId (shortName) is used instead of _id (name).
shortId is a file path whose collectionPath and extension are omitted. (_id = collectionPath + shortId)
shortName is a file path whose collectionPath is omitted. (name = collectionPath + shortName)
Example#
Constructors#
| Constructor | Modifiers | Description |
|---|---|---|
| (constructor)(gitDDB, collectionPathFromParent, parent, options) | Constructor |
Properties#
| Property | Modifiers | Type | Description |
|---|---|---|---|
| collectionPath | string | Normalized path of a collection | |
| options | CollectionOptions | Get a clone of collection options | |
| parent | ICollection | undefined | Parent collection |