[DOCS-13287] Docs for TOOLS-1954: Support roundtrip of mongoexport array notation in mongoimport Created: 11/Dec/19  Updated: 13/Nov/23  Resolved: 26/Feb/20

Status: Closed
Project: Documentation
Component/s: manual, tools
Affects Version/s: None
Fix Version/s: 4.3 Desired, Server_Docs_20231030, Server_Docs_20231106, Server_Docs_20231105, Server_Docs_20231113

Type: Task Priority: Major - P3
Reporter: Kay Kim (Inactive) Assignee: Andrew Feierabend (Inactive)
Resolution: Fixed Votes: 0
Labels: docs-grab-bag
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
documents TOOLS-1954 Support roundtrip of mongoexport arra... Closed
Participants:
Days since reply: 3 years, 50 weeks ago
Epic Link: DOCS: 4.4 Server Release Work

 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.)



 Comments   
Comment by Githook User [ 26/Feb/20 ]

Author:

{'name': 'Andrew Feierabend', 'username': 'andf-mongodb', 'email': 'andrew.feierabend@mongodb.com'}

Message: DOCS-13287 correct version to use correct format sitewide
Branch: master
https://github.com/mongodb/docs-commandline-tools/commit/b1a07062e9182e99a72e8734c52cd817abf20f04

Comment by Githook User [ 26/Feb/20 ]

Author:

{'name': 'Andrew Feierabend', 'username': 'andf-mongodb', 'email': 'andrew.feierabend@mongodb.com'}

Message: DOCS-13287 add useArrayIndexFields flag
Branch: master
https://github.com/mongodb/docs-commandline-tools/commit/c754c62d47f3f518d6085e1c9bcd39cb5e694dc2

Generated at Thu Feb 08 08:07:24 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.