Partager via


update function

 

Invoked when an item is updated in a table.

Syntax

function update(item, user, request) { }

Parameters

  • item
    Type: object

    The new state of the item to be updated in the table.

  • user
    Type: object

    The user object that represents an authenticated user when authentication is required, otherwise undefined.

  • request
    Type: object

    The request object that represents the request for the operation.

Return Value

Type: undefined 

When the update operation succeeds, a response with 200 HTTP status code is returned with the state of the updated item in the body.

Remarks

You can control data that is inserted by modifying the state of the item object before the execute method is called.

You can override the default success and error behaviors. For more information, see Mobile Services JavaScript (Node.js) backend library

See Also

Server script example how tos
How to: Authenticate with Windows Live