Hi. I’m new to Adonis and I need to use Lucid models in a js file which is running outside of Adonis framework. Can anyone help me?
I’m writing a job which runs every day automatically and I need to access MYSQL through Lucid models, but I encounter the following error on loading Adonis classes:
const Model = use(‘Model’)
ReferenceError: use is not defined
You can use