I'm new with mongodb. I just used the command mongoexport as follows:
mongoexport -d databasename -c collectionname
operation completed within few minutes, (around 300k documents exported) however I see no files anywhere. I've checked the current folder (as I thought it's runnnig as mongodump) but it seems empty as well.
Did I need to specify a folder? Where are the exported files located?
As specify in the documentation
If you do not specify a file name, the mongoexport writes data to standard output (e.g. stdout).
You need to specify a file to write the export to using the --out
option.