Start a new topic
Answered

Saving to an existing entity

How can a save data to an existing entity. I am trying to update information in the server from the app how can I do that?


Best Answer

If you have fetched the counter object from backend and try to save the changes to it, another object won't be created.


Regards,

Wani


Answer

If you have fetched the counter object from backend and try to save the changes to it, another object won't be created.


Regards,

Wani

Thank you! Will that create another object in the server because I am trying to make a counter so each user will update the int.

Hi Ben,


What you have to do is edit the object locally and save it to the back-end using saveObject method.


This documentation link should help you out: http://devcenter.kinvey.com/ios/guides/datastore#Saving


In case this doesn't solve your problem, can you share relevant code snippets?



Regards,

Wani

Kinvey Support

Login or Signup to post a comment