Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-6040

Compass cannot export sub-fields of _id

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 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

      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 Unassigned
            Reporter:
            anna.henningsen@mongodb.com Anna Henningsen
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: