Enumerable#uniqBy()

uniqByEmber.Enumerablepublic Defined in packages/ember-runtime/lib/mixins/enumerable.js:1082 Returns a new enumerable that contains only items containing a unique property value. The default implementation returns an array regardless of the receiver type. let arr = [{ value: 'a' }, { value: 'a' }, { value: 'b' }, { value: 'b' }]; arr.uniqBy('value'); // [{ value: 'a' }, { value: 'b' }] Returns: Ember.Enumerable

DS.Store#_generateId()

_generateId (modelName, properties) Stringprivate Defined in addon/-private/system/store.js:361 If possible, this method asks the adapter to generate an ID for a newly created record. Parameters: modelName String properties Object from the new record Returns: String if the adapter can generate one, an ID

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.JSONSerializer#extractErrors()

extractErrors (store, typeClass, payload, id) Object Defined in addon/serializers/json.js:1322 extractErrors is used to extract model errors when a call to DS.Model#save fails with an InvalidError. By default Ember Data expects error information to be located on the errors property of the payload object. This serializer expects this errors object to be an Array similar to the following, compliant with the JSON-API specification: { "errors": [ { "detail": "This username is alread

DS.Model#adapterDidDirty()

adapterDidDirtyprivate Defined in addon/-private/system/model/model.js:655

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'); } });

Finding Records

Finding Records The Ember Data store provides an interface for retrieving records of a single type. Retrieving a Single Record Use store.findRecord() to retrieve a record by its type and ID. This will return a promise that fulfills with the requested record: var blogPost = this.get('store').findRecord('blog-post', 1); // => GET /blog-posts/1 Use store.peekRecord() to retrieve a record by its type and ID, without making a network request. This will return the record only if it is already p

Registry#_options

_optionsInheritingDictprivate Defined in packages/container/lib/registry.js:123

DS.RecordArray#store

storeDS.Storeprivate Defined in addon/-private/system/record-arrays/record-array.js:77 The store that created this record array.

OrderedSet#copy()

copyEmber.OrderedSetprivate Defined in packages/ember-metal/lib/map.js:204 Returns: Ember.OrderedSet