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

Comment on: "manual/tutorial/iterate-a-cursor.txt"

    XMLWordPrintableJSON

Details

    Description

      document:https://docs.mongodb.com/manual/tutorial/iterate-a-cursor/
      var myCursor = db.users.find(

      { type: 2 }

      );
      maybe wrong.
      I get nothing in this syntax.
      I suppose to use "var myCursor = db.inventory.find({},

      { $type: 2 }

      );"
      if I was wrong. please tell me.
      thanks.

      Attachments

        Activity

          People

            Unassigned Unassigned
            xgen-internal-docs Docs Collector User (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              1 year, 14 weeks, 2 days ago