Query entities with jQuery.ajax in Apperyio app

Problem:

You might want to do something custom: generate url params, add a calculation during success or just use simple jQuery.ajax instead of mysterious Apperyio REST Service.

Solution:

use small snippet bellow.

MYCOLLECTION – is an dummy collection name in url ajax param, you should replace it with your collection name.
dbId – is a variable with Id of your Database in header ajax param, don’t forget to replace it.

Leave a Reply

Your email address will not be published. Required fields are marked *