Mongodb Import CSV file

64 views
Skip to first unread message

Jon Carlisle

unread,
May 25, 2016, 6:01:31 PM5/25/16
to google-cloud-sdk
Has anyone successfully used mongoimport to import documents to mongodb instance on compute engine?

For me, mongoimport says it imported 6K documents but then when I do a db.mycollection.find(), I get 0 documents.

Here's my code:

mongoimport --db users --collection contacts --type tsv --headerline --file /opt/backups/contacts.tsv

Reply all
Reply to author
Forward
0 new messages