mongoimport
Import json to MongoDB
MongoDB에 data file을 import 하기 위해서 mongoimport 이용
Params
-d
: target database-c
: target collection
Input format to import: json, csv, or tsv (defaults to 'json’)
$ mongoimport -d <database> -c <collection> <data_file>
Example
$ mongoimport -d test_database -c test_collection test.json
Last updated
Was this helpful?