How to add/remove a value in a nested array using update_one?

My actual code (in Python) is not readable due to complex variable names and other functions in it which are irrelevant to mongodb, so I think representing this simple schema can make it easier to understand. I hope that’s ok.

So, in a schema like this:

schema = {“DATE”: calendar.getDate(), “TASKS”:{customer.getName(): [‘tasks’]}}

How can I reach the array in order to add/remove/query things in it?