Skip to content

Commit

Permalink
Set array filters in MongoRepository.UpdateAsync
Browse files Browse the repository at this point in the history
  • Loading branch information
ddaspit committed Dec 5, 2024
1 parent 227bf97 commit ef0a47a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/DataAccess/src/SIL.DataAccess/MongoRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ await _collection
IsUpsert = upsert,
ReturnDocument = returnOriginal ? ReturnDocument.Before : ReturnDocument.After
};
if (arrayFilters.Count > 0)
options.ArrayFilters = arrayFilters;
T? entity;
try
{
Expand Down

0 comments on commit ef0a47a

Please sign in to comment.