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

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

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Blocker - P1
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Environment:
    • # Replies:
      1
    • Last comment by Customer:
      false

      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

            Assignee:
            sam.kleinman Sam Kleinman (Inactive)
            Reporter:
            auto auto
            Participants:
            Last commenter:
            Jonathan Dahl
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since reply:
              7 years, 7 weeks, 4 days ago
              Date of 1st Reply: