I am newbie and I need some help. I have a JSON document in NoSQL DB {"Bullets":20} and when I am trying to update it with this code below - I am getting this message Exception Message Error: {"app42Fault":{"httpErrorCode":404,"appErrorCode":2601,"message":"Not Found","details":"Document by key 'Bullets' and value '20' does not exist."}}
CODE:
var dbName:String = "VORTEX";
var collectionName:String = "UserData";
var key:String = "Bullets";
var Value = 20;
var newJsonDoc:Object = new Object();
newJsonDoc.Bullets = 15;
storageService.updateDocumentByKeyValueWithJsonObject (dbName,collectionName,key,Value ,newJsonDoc ,new JSONUpdateCallBack());
Help please!