Bundled Node modules

    Bundled node modules are often referred to as dependencies. In ArangoDB this term can often be ambiguous because Foxx also provides a dependency mechanism for linking services together.

    Make sure to include the actual node_modules folder in your Foxx service bundle as ArangoDB will not automatically install these dependencies for you. Also keep in mind that bundling extraneous modules like development dependencies may bloat the file size of your Foxx service bundle.

    1. # the 'prettier' folder will now be excluded
    2. foxx install /my-foxx-service

    Keep in mind that both yarn and npm typically also install dependencies of your dependencies to the node_modules folder which you’ll need to ignore as well if you want to exclude these modules from your service bundle.