| fix(aggregate): avoid adding extra `$match` stage if user manually set discriminator key to correct value in first pipeline stage Fix #12478 | 3 年前 |
| Update applyWriteConcern.test.js | 3 年前 |
| style: apply "eol-last" rule | 4 年前 |
| perf: remove some more unnecessary cloning in $toObject() and correct options to get() Re: #14394 | 2 年前 |
| Fix wrong circular dependency detection If the same object is referenced in multiple places, it was wrongfully detected as circular, even when it wasn't. Amends commit 7974f004fae549ac11bbc247ac371fe6be4aa137. Fixes #12775. | 3 年前 |
| fix(cursor): make `eachAsync()` avoid modifying batch when mixing `parallel` and `batchSize` Fix #12652 | 3 年前 |
| fix: recursively propagate strict values to child schemas, add docs to new helpers | 3 年前 |
| style: apply "eol-last" rule | 4 年前 |
| style: apply "eol-last" rule | 4 年前 |
| style(getModelsMapForPopulate): change error to also include the virtual path | 3 年前 |
| BREAKING CHANGE: remove background option from indexes Fix #15476 | 1 年前 |
| BREAKING CHANGE: remove background option from indexes Fix #15476 | 1 年前 |
| fix(schema): avoid throwing duplicate index error if index spec keys have different order or index has a custom name Fix #15109 | 1 年前 |
| add unit tests, avoid caching by checking based on async FunctionPrototype | 4 年前 |
| fix lint | 1 年前 |
| test: allow some "test/helpers/" test to run as stand-alone | 3 年前 |
| Add parenthesis | 4 年前 |
| chore: some more file renames to camelCase | 2 年前 |
| fix(pathTrie): handle numeric path lookups: when path segment is a number, assume array and skip Fix #16383 | 1 个月前 |
| test: allow some "test/helpers/" test to run as stand-alone | 3 年前 |
| fix(populate): handle populating deeply nested map paths Fix #15439 | 1 年前 |
| fix(populate): split into separate populate per document if resulting $in has more than 50k elements to reduce risk of BSON errors Fix #5890 | 2 个月前 |
| fix(projection): handle projections on arrays in `Model.hydrate()` projection option Fix #14680 | 2 年前 |
| fix(projection): avoid setting projection to unknown exclusive/inclusive if elemMatch on a Date, ObjectId, etc. Fix #14893 | 1 年前 |
| fix(projection): also handle value objects in isInclusive | 1 年前 |
| 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. | 2 天前 |
| 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. | 2 天前 |
| test(query): cover modifier-named dollar paths re #15642 | 1 个月前 |
| fix: handle other top-level query operators in sanitizeFilter | 6 个月前 |
| fix(query+populate): add `refPath` to projection by default, unless explicitly excluded Fix mongodb-js/mongoose-autopopulate#96 | 2 年前 |
| refactor more tests to async/await | 4 年前 |
| style: apply "eol-last" rule | 4 年前 |
| fix(schema): handle casting array filters underneath maps of Mixed Fix #15653 | 10 个月前 |
| fix: recursively propagate strict values to child schemas, add docs to new helpers | 3 年前 |
| Revert "fix(setDefaultsOnInsert): run setters on default values during upsert" | 5 个月前 |
| improve perf of setDottedPath | 4 年前 |
| style: apply "eol-last" rule | 4 年前 |
| perf(timestamps): avoid adding $setOnInsert for createdAt unless upsert set | 1 个月前 |
| fix lint | 20 天前 |
| some boilerplate cleanup in old _updateThunk() methods | 6 个月前 |