Class DS.AdapterPopulatedRecordArray

Represents an ordered list of records whose order and membership is determined by the adapter. For example, a query sent to the adapter may trigger a search on the server, whose results would be loaded into an instance of the AdapterPopulatedRecordArray.


If you want to update the array and get the latest records from the adapter, you can invoke update():

Example

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// GET /users?isAdmin=true
var admins = store.query('user', { isAdmin: true });

admins.then(function() {
  console.log(admins.get("length")); // 42
});

// somewhere later in the app code, when new admins have been created
// in the meantime
//
// GET /users?isAdmin=true
admins.update().then(function() {
  admins.get('isUpdating'); // false
  console.log(admins.get("length")); // 123
});

admins.get('isUpdating'); // true

Show:

Module: ember-data

The flag to signal a RecordArray is finished loading data.

Example

1
2
var people = store.peekAll('person');
people.get('isLoaded'); // true
Module: ember-data

The flag to signal a RecordArray is currently loading data.

Example

1
2
3
4
var people = store.peekAll('person');
people.get('isUpdating'); // false
people.update();
people.get('isUpdating'); // true
Module: ember-data

The modelClass represented by this record array.