HasMany relation between mysql model and mongodb model

Problem Statement : My project data is stored in mysql database but due to huge amount of data i want to use mysql with mongodb. I have a sql table named as ‘xyz’ and mongodb collection named as ‘abc’ each ‘abc’ is specific to ‘xyz’. how can i connect these two entities with hasMany() relation?

Why would you mix the databases?

I guess like how you do with any other model. But you will need to create two connections and make sure that MongoDb models override ::getDb() to use MongoDb connection

the project database is mysql but because of huge amount of data i want to use mongodb with mysql.

Specify two db connection first then take reference from Here. No idea you want to perform any operation in mongo db.