How to get array filters to work with eventuous mongo projector #332
Unanswered
hasunperera
asked this question in
Q&A
Replies: 1 comment
-
|
I was able to do this using Filter and $ operator, but this way, we can't use lambda expressions. Using the typed variant form provides compile-time safety and IDE can provide refactoring support, this is my current approach in the image below, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
How to get array filters to work with eventuous mongo projector? I got this use case where I want to traverse through an array and update a variable.
For example in the below mongo document, I want to set HumanId 2 -> IsMainContact to true and everything else to false
I can probably do something like this,
.Set("Contacts.$[y].IsMainContact", true)But there is no way for me to set array filter for y like this,
Beta Was this translation helpful? Give feedback.
All reactions