findRecord (store, type, id, snapshot) Promise
Called by the store in order to fetch the JSON for a given type and ID.
The findRecord
method makes an Ajax request to a URL computed by buildURL
, and returns a promise for the resulting payload.
This method performs an HTTP GET
request with the id provided as part of the query string.
Parameters:
-
store
DS.Store
-
type
DS.Model
-
id
String
-
snapshot
DS.Snapshot
Returns:
-
Promise
- promise
Please login to continue.