Last active
January 8, 2019 10:52
-
-
Save tanmaiaccion/d7d41b83e8442413a968f5fb5e5434f5 to your computer and use it in GitHub Desktop.
mongo import with field types
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mongoimport --port 27018 -d qanda -c qanda --type csv --fields question.string\(\),ans_1.string\(\),ans_2.string\(\),ans_3.string\(\),ans_4.string\(\),ans_5.string\(\),locationId.string\(\),status.boolean\(\) --columnsHaveTypes --file qanda.csv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment