how mongoose discriminator can be helpful in databases?
Let take an example your project have two role one is business user second is normal user. sure business user should have some extra fields like opening time, charges, occupancy etc. and you won't like to those in normal user document.
https://stackoverflow.com/questions/48165264/how-mongoose-discriminator-can-be-helpful-in-databases