Market","city":"Bloomington","state":"MN","zipcode":"55425"},"geo":
{"type":"Point","coordinates":[-93.24565,44.85466]}}}
{"_id":{"$oid":"59a47286cfa9a3a73e51e72d"},"theaterId":1003,"location":
{"address":{"street1":"45235 Worth
Ave.","city":"California","state":"MD","zipcode":"20619"},"geo":
{"type":"Point","coordinates":[-76.512016,38.29697]}}}
{"_id":{"$oid":"59a47286cfa9a3a73e51e72e"},"theaterId":1008,"location":
{"address":{"street1":"1621 E Monte Vista
Ave","city":"Vacaville","state":"CA","zipcode":"95688"},"geo":
{"type":"Point","coordinates":[-121.96328,38.367649]}}}
{"_id":{"$oid":"59a47286cfa9a3a73e51e72f"},"theaterId":1004,"location":
{"address":{"street1":"5072 Pinnacle
Sq","city":"Birmingham","state":"AL","zipcode":"35235"},"geo":
{"type":"Point","coordinates":[-86.642662,33.605438]}}}
At the end of the output, you should see the number of exported records:
{"_id":{"$oid":"59a47287cfa9a3a73e51ed46"},"theaterId":952,"location":
{"address":{"street1":"4620 Garth
Rd","city":"Baytown","state":"TX","zipcode":"77521"},"geo":
{"type":"Point","coordinates":[-94.97554,29.774206]}}}
{"_id":{"$oid":"59a47287cfa9a3a73e51ed47"},"theaterId":953,"location":
{"address":{"street1":"10 McKenna
Rd","city":"Arden","state":"NC","zipcode":"28704"},"geo":
{"type":"Point","coordinates":[-82.536293,35.442486]}}}
2020-08-17T11:07:24.992+1000 [########################]
sample_mflix.theaters 1564/1564 (100.0%)
2020-08-17T11:07:24.992+1000 exported 1564 records
With your URI specified, the export operation worked, and you can see all the documents from the
theatres collection. However, it's not very useful having all these documents flooding your
output. You could use some shell commands to pipe or append this output into a file, but the
mongoexport command provides another parameter in its syntax for outputting to a file
automatically. You can see this parameter (--out) in the following command:
mongoexport --
uri=mongodb+srv://USERNAME:PASSWORD@myAtlasServer.gcp.mongodb.net/sampl