The recommended way of creating a schema is using the new operator

var postSchema = new mongoose.Schema({

http://mongoosejs.com/docs/guide.html