These are some of the modules outside of Foxx you will find useful whenwriting Foxx services
These are some of the modules outside of Foxx you will find useful when writing Foxx services.
This module provides access to various ArangoDB internals as well as three of
the most important exports necessary to work with the database in Foxx:
You can find a full description of this module in the ArangoDB module appendix.
This module provides a
context object which is identical to the
service context of whichever module requires it.
There is no advantage to using this module over the
directly unless you're using a tool like Webpack
to translate your code and can't use the
module object Foxx provides directly.
This module provides a function for making HTTP requests to external services. Note that while this allows communicating with third-party services it may affect database performance by blocking Foxx requests as ArangoDB waits for the remote service to respond. If you routinely make requests to slow external services and are not directly interested in the response it is probably a better idea to delegate the actual request/response cycle to a gateway service running outside ArangoDB.
You can find a full description of this module in the request module appendix.
For more information see the chapter on the general graph module.