Compass cannot export sub-fields of _id

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 1.37.0
    • Affects Version/s: 1.31.0, 1.32.6
    • Component/s: Import/Export
    • None
    • Environment:
      OS:
      node.js / npm versions:
      Additional info:
    • Not Needed
    • None

      This check in export.js (from this commit) is incomplete in that it only handles non-nested _id values.

      It fails when _id is a subdocument, in which case selecting subfields will result in a project like '_id.a': 1, '_id': 0, which the server (rightfully) rejects.

      See HELP-36599 for more details.

            Assignee:
            Unassigned
            Reporter:
            Anna Henningsen
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: