how to save relational data?

Hi,

I have 2 tables namely Survey and Survey_Results. I am using REST API of Backendless, Survey (Main table) which has relationship (1:N) with Survey_Results.

Can anyone suggest what is the best way to save Data?

The general approach is save records to Survey_Results and then save to Survey providing relationship. I saw using mBaaS we can achieve this simply as it is similar to ORM. But i want this using REST API.

Any help highly appreciated :slight_smile:

Hi,

You can save both Survey and Survey_Results in a single request. The documentation describes it:
https://backendless.com/documentation/data/rest/data_relations_save_update.htm

Mark