Home > git-documentdb > Collection
#
Collection classDocuments under a collectionPath are gathered together in a collection.
Signature:#
RemarksIn 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#
ConstructorsConstructor | Modifiers | Description |
---|---|---|
(constructor)(gitDDB, collectionPathFromParent, parent, options) | Constructor |
#
PropertiesProperty | Modifiers | Type | Description |
---|---|---|---|
collectionPath | string | Normalized path of a collection | |
options | CollectionOptions | Get a clone of collection options | |
parent | ICollection | undefined | Parent collection |