DS.RESTAdapter#queryRecord()

queryRecord (store, type, query) Promise

Inherited from DS.Adapter but overwritten in addon/adapters/rest.js:511
Available since 1.13.0

Called by the store in order to fetch a JSON object for the record that matches a particular query.

The queryRecord method makes an Ajax (HTTP GET) request to a URL computed by buildURL, and returns a promise for the resulting payload.

The query argument is a simple JavaScript object that will be passed directly to the server as parameters.

Parameters:

store DS.Store
type DS.Model
query Object

Returns:

Promise
promise
doc_EmberJs
2016-11-30 16:50:33
Comments
Leave a Comment

Please login to continue.