MongoError: "$queryOptions" is not a valid argument to usersInfo

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Works as Designed
    • Priority: Major - P3
    • None
    • Affects Version/s: 2.2.27
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      If I connect to a mongos with auth enabled and run the usersInfo command, passing in a readPreference option, I get a:

      MongoError: "$queryOptions" is not a valid argument to usersInfo
      

      Cluster was started locally with mlaunch on macOS:

      mlaunch --init --shards 1 --replicaset --auth
      

      Minimal code example I could find to reproduce this was:

      compass_933_smaller_node_driver_example.js

      Screenshot of my terminal in case it is useful:

      MongoError $queryOptions is not a valid argument to usersInfo.png

              Assignee:
              Unassigned
              Reporter:
              Peter Schmidt (Inactive)
              None
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: