Types.Type.collections

An enumerable object describing entity collections.

Syntax

entity.$type.collections

Methods

Method Description
[get](collectionName) Returns a collection by its name.
[add](collection) Adds a new collection to the type.
[update](collection) Updates an existing collection.
[delete](collectionName) Deletes a collection from the type.

Collection Properties

Property Type Description
[name] string Collection name.
[type] EntityType Item entity type.
[field] string Entity id field name in the item type.
[condition] object Item filter condition.
[association.type] EntityType Association EntityType.
[association.field] string Association entity id field name.
[association.itemField] string Association item id field name.
[association.condition] object Association object filter condition.

Examples

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.