I have a setup like this:
// user.js const userSchema = new Schema({ ... }); userSchema.methods.someMethod = function() { ... };
In another file,