How add create products collection and all the datas given Handsout

use products not showing me any data, I have to create the collections and add ll the data into products which provided in handouts

You have to use mongoimport to load data from .json file
After import you can see products collection
Please check mongoimport from mongo docs

use products is not correct.products is a collection
use db----->replace db with the dbname where you loaded the data
show collections
db.products.count()

Hi @Milind_19368,

In order to be able to use any dataset in the mongodb environment, you need to first load that data into your mongodb environment.

It is not showing any data because, the data is not present. You will have to load it.

As @Ramachandra_37567 mentioned, please use the mongoimport command to load the data into your mongodb environment.

Please make sure you are using the correct database and collection names as mentioned in the Labs.

Hope it helps!

If you still have any query then please feel free to get back to us.

Happy Learning :slight_smile:

Thanks,
Shubham Ranjan
Curriculum Support Engineer