Database Operations Command
Hello,
I'm trying to update a row in a collection server-side and am using this code:
var XHRResponse = XHR.send("PUT", "URL_GOES_HERE", {
"headers": {
"X-Appery-Database-Id": dbId,
"X-Appery-Master-Key": masterKey,
"Content-Type": "application/json"
},
"parameters": {
"where": "{'userid':'g45g4g45g'}",
"operations":"{'$set':{'user_team':'sdfsdfsdfsdf'}}"
}
});
It doesn't seem to be working, how should the operations command be used?