UNPKG

ember-batch-request

Version:
19 lines (13 loc) 459 B
import DS from 'ember-data'; const { Store } = DS; export default Store.extend({ batchCreate(arrayOfObjects, options) { return this.adapterFor('batch-request').batchCreate(arrayOfObjects, options); }, batchUpdate(arrayOfObjects, options) { return this.adapterFor('batch-request').batchUpdate(arrayOfObjects, options); }, batchDelete(arrayOfObjects) { return this.adapterFor('batch-request').batchDelete(arrayOfObjects); } });