I am having trouble with a simple query on my database. Following this tutorial: https://scotch.io/tutorials/build-a-restful-api-using-node-and-express-4 when Model.find() i
For this code
post.title = req.body.title; // Set title (from request)
post.content = req.body.content; // Set content (from request)
could you check
req.body.title and req.body.content are not undefined?do you set the field in your Post schema as
var PostSchema = new Schema({ title: String, content: String });