js/libs/ember-data.js
function (type, payload) {
    var serializer;
    if (!payload) {
      payload = type;
      serializer = defaultSerializer(this.container);
      Ember.assert("You cannot use `store#pushPayload` without a type unless your default serializer defines `pushPayload`", serializer.pushPayload);
    } else {
      serializer = this.serializerFor(type);
    }
    serializer.pushPayload(this, payload);
  }
function (type, payload) {
    var serializer;
    if (!payload) {
      payload = type;
      serializer = defaultSerializer(this.container);
      Ember.assert("You cannot use `store#pushPayload` without a type unless your default serializer defines `pushPayload`", serializer.pushPayload);
    } else {
      serializer = this.serializerFor(type);
    }
    serializer.pushPayload(this, payload);
  }
Push some raw data into the store.

The data will be automatically deserialized using the
serializer for the `type` param.

This method can be used both to push in brand new
records, as well as to update existing records.

You can push in more than one type of object at once.
All objects should be in the format expected by the
serializer.

```js
App.ApplicationSerializer = DS.ActiveModelSerializer;

var pushData = {
posts: [
{id: 1, post_title: "Great post", comment_ids: [2]}
],
comments: [
{id: 2, comment_body: "Insightful comment"}
]
}

store.pushPayload('post', pushData);
```

@method pushPayload
@param {String} type
@param {Object} payload
@return {DS.Model} the record that was created or updated.