updateListData
Updates records for a particular set in the connection.
function(listData, set)
Returns a promise that resolves to the list data for a particular set.
connection.updateListData( {
data: [
{ id: 1, name: "dishes", createdAt: 1477104548997 }
]
}, {} ).then( function( listData ) {
listData; //-> {
// data: [
// {id: 1, name: "dishes",
// createdAt: 1477104548997, updatedAt: 1477104580000}
// ]
//}
} );
Parameters
- listData
{ListData}
:A object that represents the set of data needed to be loaded.
- set
{Object}
:The set of data that is updating.