ember / 4 / classes / snapshot / properties.html

Class Snapshot

public

adapterOptions public

A hash of adapter options

id public

The id of the snapshot's underlying record

Example

// store.push('post', { id: 1, author: 'Tomster', title: 'Ember.js rocks' });
postSnapshot.id; // => '1'

identifier public

The unique RecordIdentifier associated with this Snapshot.

include public

If include was passed to the options hash for the request, the value would be available here.

modelName public

The name of the type of the underlying record for this snapshot, as a string.

record public

The underlying record for this snapshot. Can be used to access methods and properties defined on the record.

Example

let json = snapshot.record.toJSON();

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