TIL: Mongoose N Stuff
A way to store different types of entitites in the same collection. pretty neat stuff
Mongoose with discriminators Discriminators in Mongoose allows us to specify one property (key) in a document that we’ll use to discriminate between different types of entities, and allow us to store different types of entities in the same collection.
Title of this post was obviously inspired by this, haha