DS.Adapter#findMany()

findMany (store, type, ids, snapshots) Promise Defined in addon/adapter.js:423 The store will call findMany instead of multiple findRecord requests to find multiple records at once if coalesceFindRequests is true. app/adapters/application.js import DS from 'ember-data'; export default DS.Adapter.extend({ findMany(store, type, ids, snapshots) { return new Ember.RSVP.Promise(function(resolve, reject) { Ember.$.ajax({ type: 'GET', url: `/${type.modelName}/`,

Enumerable#without()

without (value) Ember.Enumerablepublic Defined in packages/ember-runtime/lib/mixins/enumerable.js:790 Returns a new enumerable that excludes the passed value. The default implementation returns an array regardless of the receiver type. If the receiver does not contain the value it returns the original enumerable. let arr = ['a', 'b', 'a', 'c']; arr.without('a'); // ['b', 'c'] Parameters: value Object Returns: Ember.Enumerable

Handling Metadata

Handling Metadata Along with the records returned from your store, you'll likely need to handle some kind of metadata. Metadata is data that goes along with a specific model or type instead of a record. Pagination is a common example of using metadata. Imagine a blog with far more posts than you can display at once. You might query it like so: let result = this.get('store').query('post', { limit: 10, offset: 0 }); To get different pages of data, you'd simply change your offset in increme

DS.Errors

DS.Errors Class Extends: Ember.Object Uses: Ember.Enumerable Uses: Ember.Evented Defined in: addon/-private/system/model/errors.js:15 Module: ember-data Holds validation errors for a given record, organized by attribute names. Every DS.Model has an errors property that is an instance of DS.Errors. This can be used to display validation error messages returned from the server when a record.save() rejects. For Example, if you had a User model that looked like this: app/models/user.js import

Test

Ember.Test Class PUBLIC Defined in: packages/ember-testing/lib/test.js:29 Module: ember-testing This is a container for an assortment of testing related functionality: Choose your default test adapter (for your framework of choice). Register/Unregister additional test helpers. Setup callbacks to be fired when the test helpers are injected into your application.

LinkComponent#disabled

disabledprivate Defined in packages/ember-htmlbars/lib/components/link-to.js:530 Accessed as a classname binding to apply the LinkComponent's disabledClass CSS class to the element when the link is disabled. When true interactions with the element will not trigger route changes.

DS.RecordArray#addInternalModel()

addInternalModel (internalModel, an) private Defined in addon/-private/system/record-arrays/record-array.js:142 Adds an internal model to the RecordArray without duplicates Parameters: internalModel InternalModel an Number optional index to insert at

DS.BuildURLMixin#urlForUpdateRecord()

urlForUpdateRecord (id, modelName, snapshot) String Defined in addon/-private/adapters/build-url-mixin.js:323 Builds a URL for a record.save() call when the record has been update locally. Example: app/adapters/application.js import DS from 'ember-data'; export default DS.RESTAdapter.extend({ urlForUpdateRecord(id, modelName, snapshot) { return `/${id}/feed?access_token=${snapshot.adapterOptions.token}`; } }); Parameters: id String modelName String snapshot DS.Snapshot

Observable#removeObserver()

removeObserver (key, target, method) public Defined in packages/ember-runtime/lib/mixins/observable.js:385 Remove an observer you have previously registered on this object. Pass the same key, target, and method you passed to addObserver() and your target will no longer receive notifications. Parameters: key String The key to observer target Object The target object to invoke method String|Function The method to invoke.

DS.JSONSerializer#transformFor()

transformFor (attributeType, skipAssertion) DS.Transformprivate Defined in addon/serializers/json.js:1500 Parameters: attributeType String skipAssertion Boolean Returns: DS.Transform transform