UNPKG

mongoose-find-or-create

Version:

A plugin for Mongoose which adds the findOrCreate method to models. The method will either append an existing object or save a new one, depending on wether it finds it or not.

2 lines (1 loc) 47 B
module.exports = require('./lib/findorcreate')