ember-data-store-push-improvements
v0.0.1
Published
POC for https://github.com/emberjs/rfcs/pull/161
Downloads
8
Readme
ember-data-store-push-improvements
This is a POC addon for RFC#161,
which goal is to improve the store.push
situation within Ember Data.
- [x] add
store.normalizePayload
- [ ] add
store.pushRef
Installation
ember install ember-data-store-push-improvements
Code samples
let normalized = store.normalizePayload({
person: {
id: 1,
name: "GOB"
}
});
assert.deepEqual(normalized, {
data: {
type: "person",
id: "1",
attributes: {
name: "GOB"
}
}
});
Development
Installation
git clone
this repositorynpm install
bower install
Running
ember serve
- Visit your app at http://localhost:4200.
Running Tests
npm test
(Runsember try:testall
to test your addon against multiple Ember versions)ember test
ember test --server
Building
ember build
For more information on using ember-cli, visit http://ember-cli.com/.