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

mongoexport for non-existent collection behavior improvement

    • Type: Icon: Task Task
    • Resolution: Gone away
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: mongoexport
    • Labels:
      None

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

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

              Created:
              Updated:
              Resolved: