save
function
Overwrites connection.save so any hydrated instances are kept in the store until the response resolves.
connection.save( instance )
Increments the request counter so this instance will be stored and then decrements it after the request is complete.
var promise = connection.save(todo5);
connection.instanceStore.get("5") //-> todo5
promise.then(function(){
connection.instanceStore.has("5") //-> false
})
Parameters
- instance
{Object}:An typed instance.