pushPayload (store, payload)
This method allows you to push a payload containing top-level collections of records organized per type.
{ "posts": [{ "id": "1", "title": "Rails is omakase", "author", "1", "comments": [ "1" ] }], "comments": [{ "id": "1", "body": "FIRST" }], "users": [{ "id": "1", "name": "@d2h" }] }
It will first normalize the payload, so you can use this to push in data streaming in from your server structured the same way that fetches and saves are structured.
Parameters:
-
store
DS.Store
-
payload
Object
Please login to continue.