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.

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Critical - P2 Critical - P2
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      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

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

              Created:
              Updated:
              Resolved:
              11 years, 10 weeks, 4 days ago