I am using python code for updating multiple elements in an array that matches a query. Here is my document structure:
doc: { "userId":32723