These are chat archives for Automattic/mongoose

4th
Jun 2017
Paul "Joey" Clark
@joeytwiddle
Jun 04 2017 15:21
@plauclair We have a module that connects to mongoose, turns all our schemas into models, and then exposes the models. The app modules require that module, and use the models.
One advantage of that approach is that we can do things in that module that affects all the models. For example that module currently enables strict: 'throw' and make all fields required by default, for all models.