DS.Store#findByIds()

findByIds (modelName, ids) Promiseprivate Defined in addon/-private/system/store.js:688 This method makes a series of requests to the adapter's find method and returns a promise that resolves once they are all loaded. Parameters: modelName String ids Array Returns: Promise promise

DS.Store#findBelongsTo()

findBelongsTo (owner, link, relationship) Promiseprivate Defined in addon/-private/system/store.js:1059 Parameters: owner DS.Model link Any relationship Relationship Returns: Promise promise

DS.Store#findAll()

findAll (modelName, options) Promise Defined in addon/-private/system/store.js:1258 Available since 1.13.0 findAll asks the adapter's findAll method to find the records for the given type, and returns a promise which will resolve with all records of this type present in the store, even if the adapter only returns a subset of them. app/routes/authors.js import Ember from 'ember'; export default Ember.Route.extend({ model: function(params) { return this.store.findAll('author'); } });

DS.Store#find()

find (modelName, id, options) Promiseprivate Defined in addon/-private/system/store.js:429 Parameters: modelName String id String|Integer options Object Returns: Promise promise

DS.Store#filter()

filter (modelName, query, filter) DS.PromiseArraydeprecatedprivate Defined in addon/-private/system/store.js:1550 Takes a type and filter function, and returns a live RecordArray that remains up to date as new records are loaded into the store or created locally. The filter function takes a materialized record, and returns true if the record should be included in the filter and false if it should not. Example store.filter('post', function(post) { return post.get('unread'); }); The filter

DS.Store#fetchRecord()

fetchRecord (internalModel) Promiseprivate Defined in addon/-private/system/store.js:710 This method is called by findRecord if it discovers that a particular type/id pair hasn't been loaded yet to kick off a request to the adapter. Parameters: internalModel InternalModel model Returns: Promise promise

DS.Store#didUpdateAll()

didUpdateAll (typeClass) private Defined in addon/-private/system/store.js:1462 Parameters: typeClass DS.Model

DS.Store#didSaveRecord()

didSaveRecord (internalModel, data) private Defined in addon/-private/system/store.js:1740 This method is called once the promise returned by an adapter's createRecord, updateRecord or deleteRecord is resolved. If the data provides a server-generated ID, it will update the record and the store's indexes. Parameters: internalModel InternalModel the in-flight internal model data Object optional data (see above)

DS.Store#deleteRecord()

deleteRecord (record) Defined in addon/-private/system/store.js:386 For symmetry, a record can be deleted via the store. Example var post = store.createRecord('post', { title: "Rails is omakase" }); store.deleteRecord(post); Parameters: record DS.Model

DS.Store#defaultAdapter

defaultAdapterprivate Defined in addon/-private/system/store.js:269 This property returns the adapter, after resolving a possible string key. If the supplied adapter was a class, or a String property path resolved to a class, this property will instantiate the class. This property is cacheable, so the same instance of a specified adapter class should be used for the lifetime of the store. Returns: DS.Adapter