Page 1 of 1

How to Insert multiple objects into collection

Posted: Thu Jun 25, 2015 6:25 pm
by Josette

I have the same request to upload multiple objects into a collection. I am trying to write a messaging app where the user can send a message to multiple recipients. Image

I have shared my app: Chomposity, so you can take a look at it.

Page: newmessage - I added some database services to add contacts and to send messages. However, I need to send multiple messages at once. I tried creating a Server Code script, but got confused.

I do not know how to do this using JavaScript and I need help.

Thank you,


How to Insert multiple objects into collection

Posted: Thu Jun 25, 2015 9:21 pm
by Illya Stepanov

Hi Josette -

I recommend to start from basics with 'where' and 'operations' parameters in Updating database service, you can find examples here in our Docs --https://devcenter.appery.io/documenta...


How to Insert multiple objects into collection

Posted: Thu Jun 25, 2015 10:09 pm
by Josette

I do not want to update the collection, but to insert or add multiple objects at the same time.


How to Insert multiple objects into collection

Posted: Fri Jun 26, 2015 8:05 am
by Serhii Kulibaba

Hello Josette,

Unfortunatelly, it is impossible to add multiple item at the same time. You should execute create service as many times as needed.