Namespace

getters

jsonapi-vuex.jsonapiModule.getters

Vuex getters, used via this.$store.getters, e.g.: this.$store.getters['jv/get'](<args>)

View Source getters.js, line 1

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. endpoint/1

object

A restructured object - e.g. { _jv: { type: "endpoint", id: "1" } }

jsonpath string

a JSONPath string to filter the record(s) which are being retrieved. See JSONPath Syntax

View Source getters.js, line 29

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. endpoint/1

object

A restructured object - e.g. { _jv: { type: "endpoint", id: "1" } }

View Source getters.js, line 80

Restructured representation of the record(s)

object