I have read in various other posts that it is possible to register a mongoose model without exporting directly from the Schema by using: mongoose.model('Person', PersonSchema) In this example, Person would become globally to any files in the project that require('mongoose') However I’m unable to get this to work and am resorting to exporting from […]
The post Registering a mongoose schema-model globally without exporting? appeared first on BlogoSfera.