Add a global "omitempty" flag

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Unknown
    • 2.2.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • Go Drivers
    • Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      Received a client request for adding a global "omitempty" flag (see https://mongodb.aha.io/ideas/ideas/FF-I-7681).

      Currently in order to avoid writing null value in a MongoDB document we need to specify omitempty for each field of the structure. Would be useful to have the possibility to define this globally

            Assignee:
            Qingyang Hu
            Reporter:
            Julia Tazin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 3 weeks
                3w
                Logged:
                Time Spent - Not Specified
                Not Specified