DF 2.0 /JS SDK/ replaceRecord and returned fields


#1

Hi all
Working with DF 2.0 and javascript SDK
i’m trying to get all fields in the return response during a replaceRecords
for example

function devis2commande() {

var item = [
{ “_id”: My_id,"$inc": { “lastcommandenumber”: 1 }}

]

var params= JSON.stringify(item)
alert(params)
var callback = function(response) {
alert(JSON.stringify(response))
// getlastcommandnumber()

}
$.api.replaceRecord(‘users’, params, token, callback);

}

it’s ok with createrecors
but here in update records, where can i put = > fields=*

thanks for your help