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

Docs for TOOLS-1954: Support roundtrip of mongoexport array notation in mongoimport

    XMLWordPrintable

    Details

      Description

      Description

      Description:

      No documentation summary in engineering ticket

      Engineering Ticket Description:

      Enhance mongoimport to support the csv array notation that mongoexport uses.

      Example header:

      pet.types.0.auto(),pet.types.1.auto(),answers.0.auto(),questions.0.auto(),movies.0.title.auto(),answers.1.auto(),questions.1.auto(),movies.1.title.auto(),movies.1.imdbRating.auto()
      
      

      Example records:

      dog,cat
      ,,42,How many roads must a man walk down?,Hitchhiker's Guide,Huh?!,Aren't you a little short for a stormtrooper?,Star Wars,8.7/10
      
      

      Becomes these documents once imported:

       
      /* 1 */
      {
          "pet" : {
              "types" : [ 
                  "dog", 
                  "cat"
              ]
          }
      }
       
      /* 2 */
      {
          "movies" : [ 
              {
                  "title" : "Hitchhiker's Guide"
              }, 
              {
                  "title" : "Star Wars",
                  "imdbRating" : "8.7/10"
              }
          ],
          "questions" : [ 
              "How many roads must a man walk down?", 
              "Aren't you a little short for a stormtrooper?"
          ],
          "answers" : [ 
              42,
              "Huh?!"
          ]
      }
      

      Scope of changes

      Impact to Other Docs

      MVP (Work and Date)

      Resources (Scope or Design Docs, Invision, etc.)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              andrew.feierabend Andrew Feierabend
              Reporter:
              kay.kim Kay Kim (Inactive)
              Participants:
              Last commenter:
              Kay Kim Kay Kim (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since reply:
                1 year, 22 weeks ago
                Date of 1st Reply: