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

Wire Protocol returnFieldsSelector value

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Minor - P4 Minor - P4
    • Server_Docs_20231030
    • None
    • manual
    • None

    Description

      > db.collname.find({_id:ObjectId("51e9d3ace847a628a9000008")},

      {"_id": 0}

      )

      > db.collname.find({_id:ObjectId("51e9d3ace847a628a9000008")},

      {"_id": false}

      )

      These both seem to return the same result. While the wire documentation says "The returnFieldsSelector...integer value 1", boolean value true/false also seems to work. Is this officially supported? Can this potentially be mentioned in the documentation?

      Thanks

      Attachments

        Activity

          People

            Unassigned Unassigned
            xudongz Xudong Zheng
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              7 years, 29 weeks ago