Ankit
Posts: 0
Joined: Tue Mar 19, 2013 11:58 am

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

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Inserting an array of objects using the rest api in tiggzi 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.

Jon
Posts: 0
Joined: Wed Dec 26, 2012 3:37 am

Inserting an array of objects using the rest api in tiggzi database

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

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Inserting an array of objects using the rest api in tiggzi database

No. You can place an array in any collection column.
But you can't add several rows to database collection with one request.

Ankit
Posts: 0
Joined: Tue Mar 19, 2013 11:58 am

Inserting an array of objects using the rest api in tiggzi database

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.

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

Inserting an array of objects using the rest api in tiggzi database

Thanks for your reply we will think about it

Return to “Issues”