Skip to content

Commit 44fbc06

Browse files
vkarpov15Copilot
andauthored
Update lib/helpers/update/castArrayFilters.js
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent b91db2b commit 44fbc06

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/helpers/update/castArrayFilters.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ function _castArrayFilters(arrayFilters, schema, strictQuery, updatedPathsByFilt
3333
return;
3434
}
3535

36-
// Map of embedded discriminator values set in the array filters
36+
// Map to store discriminator values for embedded documents in the array filters.
37+
// This is used to handle cases where array filters target specific embedded document types.
3738
const discriminatorValueMap = {};
3839

3940
for (const filter of arrayFilters) {

0 commit comments

Comments
 (0)