insert new data and update at the same time
Posted: Tue Jan 13, 2015 2:28 am
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
Hi Sherwin,
It's not currently clear about your problem.
If you need to work with single row(in db collection) - you should link this row to some thing.. For example deviceID or userId.
So workflow will be:
App starts.
Get deviceid/userid.
Get row from collection by deviceid/userid.
If row has been found - update this row with needed data.
If row has not been found - insert new row with needed data.
That's all.
Regards.