I have a remote application where users writes queries for arangodb. I want a way to interact with arangodb from REST interface and create the scripts as javascript function. Is it possible?
For example:
script1 arangodb.db.collection1.properties();
script2 arangodb.db.collection2.properties();
So, I was hoping if I could push the these script as to reside as javascript function at arangodb. and later when I need to run these I could just somehow do a script1() or script2() rmeotely through REST interface.
this is totally possible, just take a look at the built-in Foxx Framework. To see some example code take a look at aye-aye a simple ToDo application. You can also checkout other foxx apps for that github user.
Foxx Apps can be uploaded during run-time of arangodb. No restarting necessary.