5

ArangoDB documentation (Foxx section) says:

Because Foxx runs directly inside of ArangoDB it lets you bundle all the database queries and logic necessary to handle a request in one place.

Is there any additional way, 'more native', than using the 'Foxx framework' to implement something equivalent to user-defined functions or stored procedures in ArangoDB?

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
emecas
  • 1,586
  • 3
  • 27
  • 43

1 Answers1

4

you can use user defined functions which can be used inside of AQL.

UDFs have a clear limited scope of just working with the data you put into them via parameters. So UDFs have a narower scope than stored procedures - you can't run sub-queries in them.

While Foxx can offer more functionality than stored procedures (you can directly talk to it via RESTful HTTP) its what represents stored procedures in ArangoDB.

dothebart
  • 5,972
  • 16
  • 40
  • I don't know the history, but nowadays one can access the data in the database, so it is not the case that UDFs can only work "with the data you put into them via parameters". – peak Dec 16 '17 at 07:05
  • 1
    Hi, I can assure you that while it may not instantly break, its not supported. – dothebart Dec 18 '17 at 10:52