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

Command printed on createView.help() is incorrect

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 2.3.3
    • Affects Version/s: None
    • Component/s: None
    • None
    • Environment:
      OS: Linux
      node.js / npm versions:
      Additional info:
    • Developer Tools
    • 1
    • Not Needed
    • Iteration Neptune

      Problem Statement/Rationale

      The help example for the db.createView method is wrong:

      > db.createView.help()
      
        db.createCollection('viewName', 'source', []):
      
        Create new view
      
        For more information on usage: https://docs.mongodb.com/manual/reference/method/db.createView/
      

      On the 1st line we should print createView instead of createCollection.

      Steps to Reproduce

      db.createView.help()
      

      Expected Results

        db.createView('viewName', 'source', []):
      
        Create new view
      
        For more information on usage: https://docs.mongodb.com/manual/reference/method/db.createView/
      

      Actual Results

      What do you observe is happening?

        db.createCollection('viewName', 'source', []):
      
        Create new view
      
        For more information on usage: https://docs.mongodb.com/manual/reference/method/db.createView/
      

      Additional Notes

            Assignee:
            gagik.amaryan@mongodb.com Gagik Amaryan
            Reporter:
            silvia.surroca@mongodb.com Silvia Surroca
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: