Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-398

Exclude the watch methods from autocomplete if the shell is not connected to a replica set or a sharded cluster

    • Type: Icon: Story Story
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • 0.7.7
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • 1
    • Not Needed

      watch will not be autocompleted if the shell is not connected to a replica set or a sharded cluster as change streams are only supported in replica sets or a sharded clusters.

      The user will still be able to invoke the method if they type it and they will get an error from the server. The .help() method for watch will say that this functionality is only available in replica sets or sharded cluster.

            Assignee:
            Unassigned Unassigned
            Reporter:
            massimiliano.marcon@mongodb.com Massimiliano Marcon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: