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

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

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Gone away
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None

    Description

      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. 

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: