var mongoose = require('mongoose');
var Schema = mongoose.Schema;

var EntrySchema = new Schema({
  title: String,
  link: String,
  content: String
});

EntrySchema.virtual('date').get(function(){
  return this._id.getTimestamp();
});

mongoose.model('Entry', EntrySchema);

var mongoose = require('mongoose');
var Schema = mongoose.Schema;

var EntrySchema = new Schema({
  title: String,
  link: String,
  content: String
}, {
  versionKey: false
});

EntrySchema.virtual('date').get(function(){
  return this._id.getTimestamp();
});

mongoose.model('Entry', EntrySchema);

Set versionKey to false