Two questions about data update.

0 votes
Hello world!  I have two questions.

1:

I know that API has function StorageService::AddOrUpdateKeys. But this function has argument objectId. Can i update some keys of object by querry?. UpdateDocumentByQuery will remove not updated fields.

 2:

I know than wi can add additional data when signup or auth user. Can i update additional user object?
asked Mar 18, 2016 in Cocos2D-X by Kirill Kotov (39 points)
edited Mar 18, 2016 by Kirill Kotov

1 Answer

+1 vote
 
Best answer

Hi,

 

Please find my answer inline for your query:

Ques: I know that API has function StorageService::AddOrUpdateKeys. But this function has argument objectId. Can i update some keys of object by querry?. UpdateDocumentByQuery will remove not updated fields.
Ans: As of now there is no such method where you can add or update some keys based on query. You can update the whole document by using any update method of Storage service

Ques: I know than wi can add additional data when signup or auth user. Can i update additional user object?

Ans: Yes, you can update through addOrUpdateKeys method.

 

Let me know if you need any other help while using App42 SDK. I will be happy to help!!!

 

Regards,

Himanshu Sharma

answered Mar 19, 2016 by hs00105 (2,005 points)
selected Mar 21, 2016 by Kirill Kotov
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 support@shephertz.com
...