Closed jingrid closed 7 years ago
Trying to load Blogs on my localhost, it was working, but now it just gives { "error": { "message": "Blog.find is not a function", "error": {} } }
The Blog.find is in my controller for Blogs, which I haven't changed.
Can we see the controller code?
Fixed it!
We were trying to create a nested schema, and having curly braces in module.exports was throwing it off.
Trying to load Blogs on my localhost, it was working, but now it just gives { "error": { "message": "Blog.find is not a function", "error": {} } }
The Blog.find is in my controller for Blogs, which I haven't changed.