[DOCS-7214] Comment on: "primer/import-data.txt" Created: 20/Feb/16  Updated: 03/Nov/17  Resolved: 20/Feb/16

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: 01112017-cleanup

Type: Bug Priority: Major - P3
Reporter: Docs Collector User (Inactive) Assignee: Unassigned
Resolution: Done Votes: 0
Labels: collector-298ba4e7
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Node.js and Mongo

Location: https://docs.mongodb.org/getting-started/node/import-data/
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:44.0) Gecko/20100101 Firefox/44.0
Screen Resolution: 1366 x 768
repo: docs
source: import-data


Participants:
Days since reply: 7 years, 51 weeks, 4 days ago

 Description   

i am not able to import data to collection of test db.

my query is - mongoimport --db test --collections collectionname --file fileneme.json

the location of the file is directory i am currently in.

error - error parsing command line options : unknown option "collections"



 Comments   
Comment by Kay Kim (Inactive) [ 20/Feb/16 ]

The user has a typo in the option name --collection

He accidentally typed the option with an 's' at the end

Generated at Thu Feb 08 07:53:49 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.