Vuex getters, used via this.$store.getters
, e.g.: this.$store.getters['jv/get'](<args>)
Methods
# static get(data, jsonpath) → {object}
Get record(s) from the store
Parameters:
Name | Type | Description |
---|---|---|
data | string | object | |
| string | A URL path to an item - e.g. |
| object | A restructured object - e.g. |
jsonpath | string | a JSONPath string to filter the record(s) which are being retrieved. See JSONPath Syntax |
Restructured representation of the record(s)
object
# static getRelated(data) → {object}
Get the related record(s) of a record from the store
Parameters:
Name | Type | Description |
---|---|---|
data | string | object | |
| string | A URL path to an item - e.g. |
| object | A restructured object - e.g. |
Restructured representation of the record(s)
object