Add support to construct Documents with an initializer list

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Major - P3
    • 3.3.4
    • Affects Version/s: None
    • Component/s: Aggregation Framework
    • None
    • Fully Compatible
    • Query 12 (04/04/16)
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Would allow something like this:

      Document document = {{"a", 1}, {"b", "q"}};
      

      instead of the current syntax, which can get hard to read with increasing numbers of fields:

      Document document = DOC("a" << 1 << "b" << "q");
      

            Assignee:
            Charlie Swanson
            Reporter:
            Charlie Swanson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: