| refactor: use optional chaining where possible to improve readability | 8 个月前 |
| docs: use lowercase primitive types re #16018 | 7 个月前 |
| docs: use lowercase primitive types re #16018 | 7 个月前 |
| perf: some optimizations of document constructor | 2 个月前 |
| fix(error): move common function to "helpers/error/combinePathErrors" | 3 年前 |
| docs: use lowercase primitive types re #16018 | 7 个月前 |
| Merge pull request #16350 from AbdelrahmanHafez/feat/skip-middleware-cursors-statics Support `middleware` skip option for cursors and custom hooks | 1 个月前 |
| fix(document): allow setting keys with dots in mixed paths underneath nested paths Fix #13530 | 3 年前 |
| fix(populate): split into separate populate per document if resulting $in has more than 50k elements to reduce risk of BSON errors Fix #5890 | 3 个月前 |
| fix(projection): build the dotted path correctly in isPathSelectedInclusive The accumulator read cur += cur.length ? '.' : '' + chunks[i], which parses as cur += (cur.length ? '.' : ('' + chunks[i])). After the first segment it only ever appended bare dots, producing 'a', 'a.', 'a..' for 'a.b.c', so the function never inspected a real dotted path and returned false for every nested path. Query.prototype.isPathSelectedInclusive is public API. Every other path accumulator in lib/ already gets this right, for example parentPaths.js and getSubdocumentStrictValue.js. The inner loop is removed with it. Its only statement was a bare continue, so it was a no-op, and it indexed keys with the outer loop counter, which would throw once the outer loop could reach an index beyond the first. | 20 天前 |
| fix(query): pass schema through when casting a nested $expr comparison castComparison recursed with _castExpression(val[1]) instead of _castExpression(val[1], schema, strictQuery). schema arrived undefined one frame down, so any nested comparison or $in on the right-hand side threw a raw TypeError out of query casting, and the nested operands were never cast. The other nine recursive call sites in this file already pass both arguments. | 20 天前 |
| perf: improve toObject() performance re: #14394 | 1 个月前 |
| refactor: use optional chaining where possible to improve readability | 8 个月前 |
| perf(timestamps): avoid adding $setOnInsert for createdAt unless upsert set | 1 个月前 |
| fix: isAtlas check not working properly Use ServerDescription methods for getting server host and port instead of parsing hostname, which did not work properly. Closes #12063 | 4 年前 |
| fix lint | 1 个月前 |
| style: apply "eol-last" rule | 4 年前 |
| docs(middleware): use "last" instead of "trailing" in comments and docs | 2 个月前 |
| fix(clone): isolate cloned arrays from source documents (#16281) * test(document): cover clone array isolation edge cases * fix(clone): refresh cloned document array indexes | 4 个月前 |
| refactor: use optional chaining where possible to improve readability | 8 个月前 |
| style: apply "eol-last" rule | 4 年前 |
| feat(document): add `$inc()` helper that increments numeric paths Fix #11915 | 4 年前 |
| refactor: replace deprecated substr with substring in get helper String.prototype.substr() is deprecated per MDN. Replace with substring() which has identical behavior for non-negative arguments. | 6 个月前 |
| style: change "/*!" to "/**" with "api private" this makes the all description and types available via jsdoc, but still excluded from the documentation | 4 年前 |
| fix(model+connection): return MongoDB BulkWriteResult instance even if no valid ops | 1 年前 |
| improve performance of validateSync and clone | 4 年前 |
| fix: fix browser build for Webpack 5 Re: #11584 | 4 年前 |
| fix(query): allow overwriting discriminator key with `overwriteDiscriminatorKey` if `strict: 'throw'` Fix #12513 | 3 年前 |
| find the errors in files and fix some issues | 5 个月前 |
| docs: use lowercase primitive types re #16018 | 7 个月前 |
| docs: use lowercase primitive types re #16018 | 7 个月前 |
| test: fix tests re: #12638 | 3 年前 |
| style: apply "eol-last" rule | 4 年前 |
| docs: use lowercase primitive types re #16018 | 7 个月前 |
| docs: use lowercase primitive types re #16018 | 7 个月前 |
| feat(mongoose): export omitUndefined() helper Fix #14569 | 2 年前 |
| style: apply "eol-last" rule | 4 年前 |
| address code review comments | 2 个月前 |
| docs: add PathTrie comments | 1 个月前 |
| docs: use lowercase primitive types re #16018 | 7 个月前 |
| refactor: use optional chaining where possible to improve readability | 8 个月前 |
| refactor: use optional chaining where possible to improve readability | 8 个月前 |
| Revert "fix(setDefaultsOnInsert): run setters on default values during upsert" | 5 个月前 |
| style: apply "eol-last" rule | 4 年前 |
| feat: change all symbols to use a consistent name | 3 年前 |
| style: apply "eol-last" rule | 4 年前 |
| Merge branch 'master' into vkarpov15/stack-trace-improvements | 6 个月前 |