Database access for adonis/inertia

Hi, I have an app using adonis.js & inertia.js which accesses a SQL database using the following:

DB_CONNECTION=mysql
MYSQL_HOST=123.123.0.123
MYSQL_PORT=1234
MYSQL_USER=user56789
MYSQL_PASSWORD=**********
MYSQL_DB_NAME=myapp

How can I connect this directly to moralis database?

moralis database that is used on server is mongo db, you will have to find out how to connect to mongo db. you will use only the IP and the port, no username or password, and you will have to whitelist your public IP in the admin interface to be able to access the database