Hello !
Thanks for your answer, I've tried that but I got the following error message: Cannot use the part (author_id) of (alert_list.author_id) to traverse the element ({alert_list:....)
So I tried to add posOp and allPosOp operator to fix this but it didn't work
return myCol.updateOne(MyCol::id eq id, pullByFilter(MyCol::alertList.posOp / MyCol.Alert::authorId eq authorId))
> The positional operator did not find the match needed from the query.
return myCol.updateOne(MyCol::id eq id, pullByFilter(MyCol::alertList.allPosOp / MyCol.Alert::authorId eq authorId))
> Cannot apply $pull to a non-array value