Class Snapshot
publicSnapshot is not directly instantiable. Instances are provided to a consuming application's adapters and serializers for certain requests.
Snapshots are only available when using @ember-data/legacy-compat
for legacy compatibility with adapters and serializers.
adapterOptions public
Defined in ../packages/legacy-compat/src/legacy-network-handler/snapshot.ts:109
A hash of adapter options
id public
Defined in ../packages/legacy-compat/src/legacy-network-handler/snapshot.ts:93
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
Defined in ../packages/legacy-compat/src/legacy-network-handler/snapshot.ts:73
The unique RecordIdentifier associated with this Snapshot.
include public
Defined in ../packages/legacy-compat/src/legacy-network-handler/snapshot.ts:117
If include
was passed to the options hash for the request, the value
would be available here.
modelName public
Defined in ../packages/legacy-compat/src/legacy-network-handler/snapshot.ts:127
The name of the type of the underlying record for this snapshot, as a string.
record public
Defined in ../packages/legacy-compat/src/legacy-network-handler/snapshot.ts:141
The underlying record for this snapshot. Can be used to access methods and properties defined on the record.
Example
let json = snapshot.record.toJSON();