Page 1 of 1

Update database

Posted: Sat Jul 11, 2015 10:57 pm
by sdanigo

Hi all
I use the API express to connect on my own Database.

In my app, user collect information that are stored in local storage.

At the end of the day, I would like to update my distant database with my local storage (it mimic excatly the distant database)

Is there a way to assign the value of my local storage to the payload required by the update service (because, I have more than 100 fields per record, so I would like to avoid manually assign each field)?

Thanks

Sylvain


Update database

Posted: Mon Jul 13, 2015 7:14 am
by Evgene Karachevtsev

Hello Sylvain,

I suppose that you're using custom rest service to work with your db? In this case you would need to create custom rest service query to update it.
Also please note that if you're using a model function, db is updated automatically:
https://devcenter.appery.io/documenta...