Support Topics Documentation Slack YouTube Blog

Saving multiple objects


(Kjell Håland) #1

Hi, i was wondering if there is any good way to save multiple objects in one request? (In Android / Swift)
In parse, i could use:

ParseObject.saveAllInBackground(list, new SaveCallback() {...}

Is there something similar in Backendless?
Or some documentation/tutorial that shows how to do this?


(Mark Piller) #2

Hi Kjell,

Backendless persistence (save) operation operates on a single object. You can save a collection of objects when they relate to that single parent object. For example, you can save an instance of Order which contains a collection of OrderItem objects. The order instance will be saved in the “Order” table and the collection of order items will be saved in the “OrderItem” table.

Regards,
Mark


(Kjell Håland) #3

Okay, thanks !

Kjell