W3cubDocs

/Ember.js 4

Class RecordArray

public
Defined in: ../packages/store/addon/-private/record-arrays/identifier-array.ts:118
Module: @ember-data/store

save PromiseArray public

Module: @ember-data/store
returns
PromiseArray
promise

Saves all of the records in the RecordArray.

Example

let messages = store.peekAll('message');
messages.forEach(function(message) {
  message.hasBeenSeen = true;
});
messages.save();

update public

Module: @ember-data/store

Used to get the latest version of all of the records in this array from the adapter.

Example

let people = store.peekAll('person');
people.isUpdating; // false

people.update().then(function() {
  people.isUpdating; // false
});

people.isUpdating; // true

© 2022 Yehuda Katz, Tom Dale and Ember.js contributors
Licensed under the MIT License.
https://api.emberjs.com/ember-data/4.9/classes/RecordArray/methods