Warn on sort by nonexistnet field?

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Won't Fix
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Shell
    • None
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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?

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

              Created:
              Updated:
              Resolved: