DS.RESTAdapter#query()

query (store, type, query) Promise

Inherited from DS.Adapter but overwritten in addon/adapters/rest.js:475

Called by the store in order to fetch a JSON array for the records that match a particular query.

The query 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:32
Comments
Leave a Comment

Please login to continue.