Community version MongoDB data query issue

Please do not publish screenshot of code or sample documents. It is completely unusable. Read Formatting code and log snippets in posts so that we can work with what you publish.

According to the explain plan, they are not. If you insist in using a low level API like runCommand() rather than using the friendly find() you will have to

  1. get familiar with the explain plan so that you can see by yourself that your runCommand() is not correct
  2. share the code where you use runCommand() and the code were you use find() because the issue might be with how you use runCommand()
  3. give compelling reasons as to why you want to use the low level runCommand() rather than find().