These are chat archives for Automattic/mongoose
What is the best way to have Polymorphism in mongoose?
Right now, I just create a field that only exist if a record is a child class. The field is of object type.
Looking at official driver in C# (http://mongodb.github.io/mongo-csharp-driver/2.5/reference/bson/mapping/polymorphism/).
It seams like this is the best way. Probably the author(s) might consider using such pattern?