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

Atomicity and Transactions for mongoose.

Results 18 mongoose-transactions issues
Sort by recently updated
recently updated
newest added

I am not sure if this is bug but consider that my database collection had just 2 elements `var m1 = await model.findOne({name: "A"}); var m2 = await model.findOne({name: "B"});...

Using operators like $in, $ne, $push gives an error : **UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Error: key $push must not start with '$'** @daton89 If you use mongoose...

bug
wontfix
hacktoberfest

See the following SO post for context. https://stackoverflow.com/questions/22786374/queries-hang-when-using-mongoose-createconnection-vs-mongoose-connect Essentially for downstream projects, like mine, that use mongoose.createConnection instead of mongoose.connect.. we use all db.model instead of mongoose.model. Currently this package...

const transaction = new mongoose_transactions_typescript_1.default(); ^ TypeError: mongoose_transactions_typescript_1.default is not a constructor at Object. (E:\Project\WorkProject\backend\dist\service\wallet.service.js:5:21) at Module._compile (internal/modules/cjs/loader.js:701:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10) at Module.load (internal/modules/cjs/loader.js:600:32) at tryModuleLoad (internal/modules/cjs/loader.js:539:12) at Function.Module._load (internal/modules/cjs/loader.js:531:3)...

As I can see [here](https://github.com/daton89-topperblues/mongoose-transactions/blob/master/src/main.ts), you use _"old model"_ for restoring consistency of db in the rollback transaction. It's wrong, you shouldn't implement rollback that way because Mongo does not...

enhancement

Bumps [json5](https://github.com/json5/json5) from 2.1.1 to 2.2.3. Release notes Sourced from json5's releases. v2.2.3 Fix: [email protected] is now the 'latest' release according to npm instead of v1.0.2. (#299) v2.2.2 Fix: Properties...

dependencies

Bumps [qs](https://github.com/ljharb/qs) from 6.5.2 to 6.5.3. Changelog Sourced from qs's changelog. 6.5.3 [Fix] parse: ignore __proto__ keys (#428) [Fix] utils.merge: avoid a crash with a null target and a truthy...

dependencies

Bumps [decode-uri-component](https://github.com/SamVerschueren/decode-uri-component) from 0.2.0 to 0.2.2. Release notes Sourced from decode-uri-component's releases. v0.2.2 Prevent overwriting previously decoded tokens 980e0bf https://github.com/SamVerschueren/decode-uri-component/compare/v0.2.1...v0.2.2 v0.2.1 Switch to GitHub workflows 76abc93 Fix issue where decode...

dependencies