Bu sayfa faydalı mıydı?
Bu içerik hakkındaki geri bildiriminiz önemli. Ne düşündüğünüzü bilmemize izin verin.
İlave geri bildirim?
1500 karakter kaldı
MSDN Library
EN
Bu içerik dilinizde bulunmamaktadır ancak İngilizce sürümüne buradan bakabilirsiniz.

insert function

Updated: June 3, 2015

Invoked when an item is insert into a table.

function insert(item, user, request) { }

item
Type: object

The rowset to be inserted into 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.

Type: undefined

When the insert operation succeeds, a response with 201 HTTP status code is returned with the state of the inserted item in the body. This item includes the ID of the item generated during the insert operation.

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

Show:
© 2015 Microsoft