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

$elemMatch to return one element in array is not supported before 2.2 - improve documentation on how to work around this at the client side.

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Critical - P2 Critical - P2
    • None
    • None
    • None
    • None

    Description

      Returning single entries from an array subdocument is not supported in versions before 2.2. The entire document must be returned.
      So some examples of how to access into the returned BSON arrays in the different driver would be useful. These pages should also be easy to find.

      For example, the existing documentation on accessing BSON arrays for example in C++ could be improved here
      The existing page is not easy to find. From the main C++ page here there are no links, nor from the BSON C++ page

      Attachments

        Activity

          People

            kay.kim@mongodb.com Kay Kim (Inactive)
            gregor Gregor Macadam
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              10 years, 51 weeks, 3 days ago