These are chat archives for Automattic/mongoose
I want to connect dynamic mongo DB with my single code according to sub domain url.
if www.xyz.example.com then mongo DB is xyz
if www.abc.example.com then mongo DB is abc
if www.efg.example.com then mongo DB is efg
but xyz DB connection should not disconnect. it should be remain when another Db connect . Because there is single code/project.
Please give a solution and thanks in advance