getCollection()
Returns all records in a collection as a MobX observable array.
Returns an empty observable array if the collection has no records yet.
Unlike peekAll, this always returns an observable so components can
react to future changes.
Kind: global function
Returns: Array.<CollectionRecord> - Observable array of all records in the collection.
| Param | Type | Description |
|---|---|---|
| collectionName | string | The registered collection name. |
Example
const addresses = ARM.getCollection('addresses')
// addresses is a live observable array - updates when records are added/removedLast updated on