2

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.

1 Answer 1

3

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.

Sign up to request clarification or add additional context in comments.

2 Comments

I ran through the example Foxx app. It seems that If I start the foxx app then I can not access the default ui (aardvark) which comes with the arangodb by default. Is there a possibility if I can have both? I just want to plugin my REST implementation along with the aardvark
yes, it's possible. If the two application's routes do not conflict (and they shouldn't for the two applications in question), then you can use both applications in parallel. You can also have more than two, just install them using different mount points.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.