TypeError: Object {...} has no method 'find' - when using mongoose with express
- by sdouble
I'm having trouble getting data from MongoDB using mongoose schemas with express.
I first tested with just mongoose in a single file (mongoosetest.js) and it works fine. But when I start dividing it all up with express routes and config files, things start to break. I'm sure it's something simple, but I've spent the last 3 hours googling and…