Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-13433

Warn on sort by nonexistnet field?

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Shell
    • None

    Description

      db.collection.find().sort({pubdate: 1})

      doesn't warn at all that no documents had that attribute (allowing the user to figure out that they might have misspelled "pubDate").

      Any chance to implement this warning?

      Attachments

        Activity

          People

            Unassigned Unassigned
            dandv Dan Dascalescu
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: