Class DS.Adapter
Extends: | Ember.Object |
---|---|
Defined in: | addon/adapter.js:7 |
Module: | ember-data |
coalesceFindRequests
Module: | ember-data |
---|
Defined in addon/adapter.js:427
By default the store will try to coalesce all fetchRecord
calls within the same runloop into as few requests as possible by calling groupRecordsForFindMany and passing it into a findMany call. You can opt out of this behaviour by either not implementing the findMany hook or by setting coalesceFindRequests to false.
defaultSerializer
Module: | ember-data |
---|
Defined in addon/adapter.js:65
If you would like your adapter to use a custom serializer you can set the defaultSerializer
property to be the name of the custom serializer.
Note the defaultSerializer
serializer has a lower priority than a model specific serializer (i.e. PostSerializer
) or the application
serializer.
app/adapters/django.js
import DS from 'ember-data'; export default DS.Adapter.extend({ defaultSerializer: 'django' });
© 2020 Yehuda Katz, Tom Dale and Ember.js contributors
Licensed under the MIT License.
https://api.emberjs.com/ember-data/2.18/classes/DS.Adapter/properties