Class Snapshot
public| Defined in: | ../packages/store/addon/-private/network/snapshot.ts:24 |
|---|---|
| Module: | @ember-data/store |
adapterOptions public
| Module: | @ember-data/store |
|---|
Defined in ../packages/store/addon/-private/network/snapshot.ts:103
A hash of adapter options
id public
| Module: | @ember-data/store |
|---|
Defined in ../packages/store/addon/-private/network/snapshot.ts:87
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
| Module: | @ember-data/store |
|---|
Defined in ../packages/store/addon/-private/network/snapshot.ts:67
The unique RecordIdentifier associated with this Snapshot.
include public
| Module: | @ember-data/store |
|---|
Defined in ../packages/store/addon/-private/network/snapshot.ts:111
If include was passed to the options hash for the request, the value would be available here.
modelName public
| Module: | @ember-data/store |
|---|
Defined in ../packages/store/addon/-private/network/snapshot.ts:121
The name of the type of the underlying record for this snapshot, as a string.
record public
| Module: | @ember-data/store |
|---|
Defined in ../packages/store/addon/-private/network/snapshot.ts:134
The underlying record for this snapshot. Can be used to access methods and properties defined on the record.
Example
let json = snapshot.record.toJSON();