mongoimport is not recognized code example

Example 1: mongoimport is not recognized

From version 4.4 onwards, you have to install MongoDB tools separately
https://www.mongodb.com/try/download/database-tools?tck=docs_databasetools

Unzip and move the contents within 
path_to_your_extracted_folder\mongodb-database-tools-windows-x86_64-100.3.0\bin
to 
C:\Program Files\MongoDB\Server\4.4\bin

Example 2: mongoimport is not defined

mongoimport.exe -h localhost:27017 -d sampleTestDB -c testc -u "" -p "" D:\mongoSample.json