The database is configured with a Mongo sharding with 3 Shards. (TestSharding). The database is configured with a Mongo sharding with 3 Shards. (TestSharding) and the script can be javascript.
I have to do a job that determines if there is a .json or .csv file and imports it into a Mongo database. But I don't know how to do a job. Can somebody help me?
Basically you want to interact your local file with the mongodb instance. You want to look for interface that allows you to do so.
There are two simple way you can achieve that:
mongoimport
https://docs.mongodb.com/manual/reference/program/mongoimport/fs
and mongodb
(https://www.npmjs.com/package/mongodb) module