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?
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