Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-606

Anonymous/embedded fields should be "inline-ed" by default

    • Type: Icon: Improvement Improvement
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      Currently it seems that in order to "inline" a field it must have the "inline" tag even if it's an embedded/anonymous field. In Go, the standard practice is to "inline" the embedded fields. This behaviour exists in the std lib (i.e. encoding/json, encoding/xml) so I believe the mongo driver/bson should follow the same practice. 

            Assignee:
            Unassigned Unassigned
            Reporter:
            themihai Mihai B
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: