node-mongoose-fixtures icon indicating copy to clipboard operation
node-mongoose-fixtures copied to clipboard

Create mongoose fixtures from a dataset.

Results 7 node-mongoose-fixtures issues
Sort by recently updated
recently updated
newest added

Somewhere between `mongoose` versions 6.8.0 and 7.6.1 `node-mongoose-fixtures` stopped working. This is because _Model.insertMany() no longer accepts a callback_. I made a quick and dirty change locally on line 37...

If anybody needs an updated version of this package, or want to update `node-mongoose-fixtures` (seems abandoned, but maybe not), I've forked it in `mongoose-control` ([github](https://github.com/neverbot/mongoose-control/), [npm](https://www.npmjs.com/package/mongoose-control)). - callbacks removed, now...

Hello, I am facing an issue where `model.pre('save')` middleware is not being invoked because it uses `insertMany`. This was changed from `create` to `insertMany` in [this PR](https://github.com/kennethklee/node-mongoose-fixtures/issues/7). Can we switch...

Bumps [mongoose](https://github.com/Automattic/mongoose) from 3.8.40 to 5.8.6. Changelog *Sourced from [mongoose's changelog](https://github.com/Automattic/mongoose/blob/master/History.md).* > 5.8.6 / 2020-01-07 > ==================== > * chore: merge changes from 4.13.20 and override mistaken publish to latest...

dependencies

## Feature The main idea is to be able to save named datasets accepting functions where you can create your datasets based on some extra data given by parameter when...

My tests broke when I upgraded from 0.2.4 to 0.3.0. An example scenario: ``` fixtures.save('mockAccount', { account: { username: 'one', password: 'pass' } }); fixtures('mockAccount', function(err, data) { }); ```...

Please checkout https://github.com/kennethklee/node-mongoose-fixtures/blob/master/lib/index.js#L7 In that case when you passing an only dataset, db param will be undefined.