Class ManyArray

Ember.MutableArray
Extends: EmberObject
Uses: DeprecatedEvented ,
Defined in: ../model/addon/-private/system/many-array.js:14
Module: @ember-data/store

isLoaded

Module: @ember-data/store

The loading state of this array

meta public

Module: @ember-data/store

Metadata associated with the request for async hasMany relationships.

Example

Given that the server returns the following JSON payload when fetching a hasMany relationship:

{
  "comments": [{
    "id": 1,
    "comment": "This is the first comment",
  }, {
// ...
  }],

  "meta": {
    "page": 1,
    "total": 5
  }
}

You can then access the metadata via the meta property:

post.get('comments').then(function(comments) {
  var meta = comments.get('meta');

// meta.page => 1
// meta.total => 5
});

© 2020 Yehuda Katz, Tom Dale and Ember.js contributors
Licensed under the MIT License.
https://api.emberjs.com/ember-data/3.25/classes/ManyArray/properties