Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-1012

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

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.2.27
    • Component/s: 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 Unassigned
            Reporter:
            peter.schmidt Peter Schmidt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: