Inserting an array of objects using the rest api in tiggzi database
Is there a clause in Rest API's generated against a tiggzi database which can insert an array of objects into the database
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
Is there a clause in Rest API's generated against a tiggzi database which can insert an array of objects into the database
Hello,
Arrays in database can contain simple values only: strings, numbers or boolean values (http://docs.tiggzi.com/documentation/...). If you need to save array of objects you can use JavaScript to convert each object to JSON string. Then it can be stored in Database column.
When receive data from collection, you would need to convert JSON strings to JavaScript objects.
Hi Katya,
Thanks for your reply. Our ultimate goal is to speed up the REST API calls to the Tiggzi DB and pass an array with each call rather than just a single object.
Do I understand you correctly we could accomplish this goal with the right JavaScript / JSON conversion?
As context, we're using a simple JS library to implement local storage already.
Sincerely,
Jon
No. You can place an array in any collection column.
But you can't add several rows to database collection with one request.
Hi Katya,
Thanks for your reply, could we expect a feature which allows us to write custom scripts and expose custom set of api's over the tiggzi database in the future.
Thanks for your reply we will think about it