DS.SnapshotRecordArray#meta

meta{Object} Defined in addon/-private/system/snapshot-record-array.js:40 Meta object

DS.SnapshotRecordArray#length

length{Number} Defined in addon/-private/system/snapshot-record-array.js:28 Number of records in the array

DS.SnapshotRecordArray#adapterOptions

adapterOptions{Object} Defined in addon/-private/system/snapshot-record-array.js:46 A hash of adapter options

DS.SnapshotRecordArray

DS.SnapshotRecordArray Class PRIVATE Defined in: addon/-private/system/snapshot-record-array.js:5 Module: ember-data

DS.Snapshot#type

type{DS.Model} Defined in addon/-private/system/snapshot.js:78 The type of the underlying record for this snapshot, as a DS.Model.

DS.Snapshot#serialize()

serialize (options) Object Defined in addon/-private/system/snapshot.js:350 Parameters: options Object Returns: Object an object whose values are primitive JSON values only

DS.Snapshot#record

record{DS.Model} Defined in addon/-private/system/snapshot.js:63 The underlying record for this snapshot. Can be used to access methods and properties defined on the record. Example var json = snapshot.record.toJSON();

DS.Snapshot#modelName

modelName{String} Defined in addon/-private/system/snapshot.js:86 The name of the type of the underlying record for this snapshot, as a string.

DS.Snapshot#id

id{String} Defined in addon/-private/system/snapshot.js:48 The id of the snapshot's underlying record Example // store.push('post', { id: 1, author: 'Tomster', title: 'Ember.js rocks' }); postSnapshot.id; // => '1'

DS.Snapshot#hasMany()

hasMany (keyName, options) (Array|undefined) Defined in addon/-private/system/snapshot.js:238 Returns the current value of a hasMany relationship. hasMany takes an optional hash of options as a second parameter, currently supported options are: ids: set to true if you only want the IDs of the related records to be returned. Example // store.push('post', { id: 1, title: 'Hello World', comments: [2, 3] }); postSnapshot.hasMany('comments'); // => [DS.Snapshot, DS.Snapshot] postSnapshot.has