MobileServiceTable.update function

Updates an object in a given table.

mobileServiceTable.update(instance);

Parameters

  • instance
    Type: object

    The instance to update in the table, as a JSON object.

Return Value

Type: A Promise object that returns the updated object when it completes.

Call the done method on the returned Promise object to get a copy of the updated object and handle any errors.

Example

This code takes a freshly completed TodoItem and updates the database.

todoTable.update(todoItem);

.NET Framework Equivalent

UpdateAsync

Requirements

Namespace

WindowsAzure.MobileServices

Library

MobileServices.js

See Also

Reference

MobileServiceTable object

Other Resources

Get started with data in Mobile Services
How to use an HTML/JavaScript client for Azure Mobile Services