NPM Mongoose Findorcreate
var findOrCreate = require('mongoose-findorcreate')var ClickSchema = new Schema({ ... });ClickSchema.plugin(findOrCreate);var Click = mongoose.model('Click', ClickSchema);
Cheerful Chimpanzee