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.

22 lines (21 loc) 283 B
language: node_js node_js: - '7.2.1' env: - CXX=g++-4.8 addons: apt: sources: - ubuntu-toolchain-r-test packages: - g++-4.8 cache: apt: true directories: - node_modules services: - mongodb before_script: - sleep 15 notifications: email: false