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

Add note about dotted field names within $group to 3.4 compatibility changes

    • Type: Icon: Task Task
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 Major - P3
    • Server_Docs_20231030
    • Affects Version/s: None
    • Component/s: Server
    • Labels:
      None

      Due to a refactor during the 3.4 development cycle we no longer accept dotted field names inside a $group stage's _id field. So this pipeline no longer works, and returns an error of "FieldPath field names may not contain '.'"

      [{$group: {_id: {"name.subname": "$foo", bar: "$bar"}, count: {$sum: 1}}}]
      

      We should add a note about this to our compatibility notes.

            Assignee:
            Unassigned Unassigned
            Reporter:
            charlie.swanson@mongodb.com Charlie Swanson
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              1 year, 27 weeks ago