I'm trying to learn how to develop Foxx services.
There are many examples where people use:
const someCollection = module.context.collection('someCollectionName');
But in my project this code doesn't work. someCollection always null, but it's exist in collections.
And this code works perfectly:
const db = require('@arangodb').db;
const someCollection = db._collection('someCollectionName');
My question is why first code isn't work?