Josette
Posts: 0
Joined: Mon Jun 08, 2015 10:59 pm

How to Insert multiple objects into collection

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,

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

How to Insert multiple objects into collection

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...

Josette
Posts: 0
Joined: Mon Jun 08, 2015 10:59 pm

How to Insert multiple objects into collection

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

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

How to Insert multiple objects into collection

Hello Josette,

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

Return to “Issues”