I have a database called โProjectโ and a collection that is โsampleโ, after which I inserted a single JSON file using the mongoimport .
Now I edited the same JSON file. Therefore, if you want to import the same JSON file into the collection, I run into a problem, since several instances are created and the update does not occur.
Is there a way to update or overwrite data already present in mongodb using the mongoimport command?
Note that I also tried using the --mode=upsert flag:
./mongoimport
source share