Load data via JSON?
Closed this issue · 4 comments
I was trying to load data via JSON with embedded relations:
App.store.adapter.load(App.store, App.Front, {
"id": "1",
"posts": [{"title": "Hello World"}]
});
Unfortunately, I was getting following error:
Error: assertion failed: Unable to resolve type undefined. You may need to configure your serializer aliases.
Providing "type": "post"
and configuring an alias via App.store.adapter.configure("App.Post", { alias: "post" });
didn't help either.
I assume that because LSAdapter
's serializer extends DS.JSONSerializer
I'm able to load data via JSON (including relationships) - am I wrong?
There is no support for embedded relationships, I'm waiting for ember-data to settle down before spending any more dev time on this adapter, but feel free to take a stab at it :)
I'll leave this open until the adapter supports embedded relationships.
Great, thanks for the answer. Ember Data 0.13 exists since almost two months, compared to before, that's already quite a while. Or is there still too much change going on behind the curtain? I'm not following actively, just asking...
@kraftwer1 are you still around? Is this issue still relevant?
I don't know, embedded records are unsupported by Ember Data beta anyway, right now, so I might as well close this issue. Thank you.