2
votes

I do not really understand the concept of "module context" of one service in arangodb. https://docs.arangodb.com/3.3/Manual/Foxx/Context.html

Can anyone give an simple example where this "context" should be used?

1
What problem are you trying to solve?Gernot

1 Answers

2
votes

Foxx Getting started reveals the following:

The module.context is the so-called Foxx context or service context. This variable is available in all files that are part of your Foxx service and provides access to Foxx APIs specific to the current service, like the use method, which tells Foxx to mount the router in this service (and to expose its routes to HTTP).