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

Comment on: "manual/reference/method/cursor.hasNext.txt"

    XMLWordPrintableJSON

Details

    Description

      It doesn't return true/false it returns a Promise object that than returns true/false.

      So it was confusing to me when I first made this:
      if(cursor.hasNext())

      { // do something }

      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:
              Resolved:
              1 year, 14 weeks, 1 day ago