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