mongoose-uuid is a plugin which adds uuid _id to a model
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var uuid = require('mongoose-uuid');
var UserSchema = new Schema({}, {_id: false});
UserSchema.plugin(uuid);
npm install mongoose-uuid --save
Copyright (c) 2014 Darin Lampson. Licensed under the MIT license.