NoSQL Storage

0 votes
i have json doc :



how to update value of "TokenId"

i've tried using update document

but it created a new json doc. not append "TokenId" value.
asked Mar 8, 2014 in App42 Cloud API-BaaS by goldglorygirl (55 points)

1 Answer

0 votes

Please use updateDocumentByDocId something like this.

String newJsonDoc = "{"DeviceId":"34cd6116b29f2b70592665208631b2c94473dda7","TokenId":"<Your new Token Id>","Email":"","Username":"testing","Password":"dcccc056c6bb70ab32adeaed7922c271","EmailLower":"asdaasdyahoocom","UsernameLower":"testing"}"

storageService.updateDocumentByDocId("<DB Name>", "<Collection Name>", "<Document Id>", newJsonDoc);    

answered Mar 9, 2014 by sshukla480 (407 points)
Any simple way ?
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on