Test your Ember Data knowledge with a free interactive quiz — 20 questions with answers and explanations. No signup needed to play.
Question 1/5Score 0
What does `store.createRecord()` do, and how does the resulting record relate to the backend until it's actually saved?
Questions in this quiz
What does `store.createRecord()` do, and how does the resulting record relate to the backend until it's actually saved?
What is a "relationship" in Ember Data, and how is a "belongs-to" relationship typically declared on a model?
What is a reasonable use case for `store.query()` as distinct from `store.findRecord()` or `store.findAll()`?
What does calling `.rollbackAttributes()` on a "dirty" (locally modified but not-yet-saved) Ember Data record do?
How does Ember Data typically handle asynchronous relationships (like the default behavior of `@belongsTo`/`@hasMany`) when a related record hasn't been loaded yet?
What is a reasonable comparison between Ember Data and a more general-purpose data-fetching library (like a plain `fetch()` wrapper, or React Query in a different framework), given that Ember Data is specifically integrated with Ember.js?
What is the difference between `store.findRecord()` and `store.peekRecord()` in Ember Data?
What is Ember Data?
What is a reasonable justification for defining explicit relationships (via `@belongsTo`/`@hasMany`) on Ember Data models, rather than just storing a raw foreign-key ID as a plain attribute and manually fetching the related record separately when needed?
What is the purpose of an Ember Data "Serializer"?
What is the purpose of the Ember Data "Store", and how is it typically accessed within an application?
What is the purpose of the `@attr` decorator's optional "transform" argument, e.g. `@attr('date') createdAt;`?
Gaps to close?
Read the curated Ember Data notes — core concepts, patterns, interview prep.