mongoose-cli icon indicating copy to clipboard operation
mongoose-cli copied to clipboard

Results 6 mongoose-cli issues
Sort by recently updated
recently updated
newest added

- Moved encryption hooks to separate class - they won't be generated into model class - Removed custom time stamps functionality - now using Mongoose `timestamps: true` option - Added...

Hi Andy, My idea it to keep model code as clean as possible (model data definition only) so all hooks and comparators should be in a separate file. I'm working...

I'm not sure that I'm 100% right but it seems that time stamps functionality generated into each model duplicates Mongoose automatic time stamps functionality http://mongoosejs.com/docs/guide.html#timestamps Correct me if I'm wrong....

``` $ node_modules/.bin/mongoose shell ./models/connection-string.js:10 if (!cmd) throw new Error('\033[31m Improperly formatted URI: \033[0m' + uri); ^ Error: Improperly formatted URI: mongodb://localhost/myproject ```

``` $ node_modules/.bin/mongoose mshell { Error: Cannot find module './models/seed/repl.js' at Function.Module._resolveFilename (module.js:440:15) at Function.Module._load (module.js:388:25) at Module.require (module.js:468:17) at require (internal/module.js:20:19) at Object.mshell (./node_modules/mongoose-model-cli/commands/shell.js:41:7) at Object. (./node_modules/mongoose-model-cli/bin/mongoose-model-cli:62:23) at Module._compile...

set up hooks to remove associations. allow URI format to omit username and password allow variable directory for models add url data-type