Different result between db.count and db.find

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Critical - P2
    • None
    • Affects Version/s: 3.2.6
    • Component/s: None
    • None
    • ALL
    • None
    • 0
    • None
    • None
    • None
    • None
    • None
    • None

      Hi Team,

      I have a very weird problem, when I run db.count the command returns 2 but when I run db.find the command returns only one.

      mongos> db.xxx.count({ "_id" : "xxx1787319235"});
      2
      mongos> db.xxx.find({ "_id" : "xxx1787319235"}, {yyy:1});
      { "_id" : "xxx1787319235", "yyy" : "1e1805a52ef44173233082e34e4175df07288f2ea0928a5e05217a9d969a2ef3" }
      

            Assignee:
            Unassigned
            Reporter:
            Pierre MOELO [X]
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: