Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-2282

mongoexport for non-existent collection behavior improvement

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Minor - P4
    • Resolution: Gone away
    • None
    • None
    • mongoexport
    • None

    Description

      I got some feedback in person from a MongoDB user at one of our recent conferences:

      The user had a typo in the collection name they targeted when using mongoexport and as a result they exported an empty result. However since they did not get feedback from mongoexport that the collection did not exist, they didn't realize until later that they'd made the mistake and were frustrated.

      Ideally we would provide some kind of feedback to the user when targeting a non-existent collection rather than making it feel like the operation was successful (even if we have indeed successfully dumped an empty file).

      They found out how to use mongoexport from the Atlas in-UI Command Line tools helper page.

      This may apply to mongodump as well (I'm not sure).

      Attachments

        Issue Links

          Activity

            People

              divjot.arora@mongodb.com Divjot Arora
              andrew.davidson@mongodb.com Andrew Davidson
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: