TIL: Mongoose N Stuff

Mongoose Discriminators

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.

Completely unrelated

Title of this post was obviously inspired by this, haha