Using values in a cursor as qualifier value within Mongosh

Please read Formatting code and log snippets in posts and then update your post so that your code is readable.