Questions tagged [ember-data]

ember-data is a data persistence extension for the Ember.js framework.

Because the MVC framework builds applications which run in the browser rather than returning fully-rendered pages in response to browser requests, it requires a method for saving and reloading user data.

Ember.js supports a number of "data persistence" libraries, including a data store component inherited from the framework. In general these frameworks support CRUD operations on a RESTful web service, and as such they are agnostic regarding the technology of the back-end web service.

Ember-data is the "official" data persistence library for Ember.js, supported by the Ember.js team. It uses "adapters" to load data for use by Ember.js applications, and allows developers to write custom adapters to support their own specific data store.

Beta Period

During the beta period (up until 1.0) the API is constantly changing, you can keep up to date by reading the Transition Document.

Getting help

Ember-data is supported in much the same way as Ember.js itself.

The Stack Overflow tag is actively monitored by several contributors to Ember. You may try asking questions in the active IRC channel #emberjs on irc.freenode.net. Other resources can found on the Ember.js community page

Technical questions that are accompanied by working code make it easier for other to help give good answers. JSFiddle | JSBin

To report bugs against Ember.js, or to propose new functionality, create an issue on the Github project.

5483 questions
8
votes
4 answers

Where to place fixtures?

Where should I define fixtures in an Ember JS app generated with ember-cli? I've tried numerous places, such as app.js and within a folder called "fixtures".
YWCA Hello
  • 2,997
  • 4
  • 29
  • 40
8
votes
1 answer

Iterating over Ember.js ember-data Record Arrays

I've been beating my head against this problem all day, and I feel like I'm close to a solution but just can't quite make it happen. I'm using Ember.js with Ember-Data and the Fixtures adapter, eventually migrating to a REST adapter. The basic…
Ben
  • 571
  • 2
  • 4
  • 15
8
votes
2 answers

Ember Data: how can I delete/unload a record that's stuck in the "inFlight" state?

Say I am trying to save a Foo record to the back-end. For whatever reason, the back-end never returns (neither success nor failure). From what I can see, it looks like foo stays in the "in flight" state. The problem with this state is it completely…
PJC
  • 997
  • 7
  • 21
8
votes
4 answers

Load a model manually with EmberData

I have an Ember app with a login form which returns the current user in JSON format after successful login. Using createRecord sets the returned JSON attributes directly on the model. For instance, is_private becomes user.is_private, not…
bschaeffer
  • 2,824
  • 1
  • 29
  • 59
8
votes
3 answers

Ember.js Rest Adapter: mapping JSON with no root (.NET Web API)

I have an existing service written with the .NET Web API. As an example, this service returns JSON in the following format: [ { "id": 1, "name": "John" }, { "id": 2, "name": "Jane" } ] However, as per the Ember.js Rest Adapter documentation,…
Tyson Nero
  • 2,048
  • 5
  • 26
  • 36
8
votes
3 answers

How to handle 404 of Ember Data in route?

In my route I have a method that tries to request a list of models from the server model: -> App.MyModel.find projectId: (@modelFor "project").id Now obviously sometimes this might return a 404. At the moment when this happens, Ember…
stephanos
  • 3,319
  • 7
  • 33
  • 47
8
votes
5 answers

Ember, Ember Data and MongoDB's _id

I've seen this question talked about but I'm still having issues with manhandling Mongo's _id into id. I'm using mongoose as my ORM and while it has virtuals I can't seem to get it to work properly. Below is what I have in my mongoose…
Chad
  • 18,076
  • 8
  • 31
  • 41
8
votes
1 answer

Emberjs: How to filter by more than one property at once

Below I am filtering by a single property sure, but how do I filter by another one in one go? That is, without providing the user with a drop down containing different search options Example: My search term maybe name, email or age. var search =…
KALBB
  • 105
  • 1
  • 6
8
votes
2 answers

How to make linkTo dynamic in ember?