Posts tagged “mongoose”
-
If MongoDB is schemaless, why do we write Mongoose schemas? Why not one collection for everything?
MongoDB stores whatever you write; Mongoose checks only what goes through Mongoose, and not all of that. Measured on MongoDB 8.2: what each layer enforces, and what one shared collection costs.