Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-1628

Comment on: "manual/tutorial/generate-test-data.txt"

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Blocker - P1 Blocker - P1
    • None
    • None
    • None

    Description

      Hi,

      Problem :

      The first two lines below in the insertData function generate an error :

      var db = db.getSiblingDB(dbName);
      var col = db.getCollection(colName);

      Error :

      JavaScript execution failed: TypeError: Cannot call method 'getSiblingDB' of undefined at /Users/selenite29/.mongorc.js:L4

      Suggestion :

      I resolved it by renaming var db.

      Reporter: Selenite Vingt-Neuf

      Attachments

        Activity

          People

            sam.kleinman Sam Kleinman (Inactive)
            auto auto
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              10 years, 34 weeks, 6 days ago