I have a mongodump from a mongodb cloud.Its available locally on my pc.Now I want to create a new mongdb database. And access files locally using queries.I used pymongo for this. Here is my code:
import pymongo
client = pymongo.MongoClient('mongodb://localhost:27017')
database = client['db_name']
mongorestore -d db_name adress_of_mongodump
//mongorestore -d database C:\Users\Lenovo\Documents\home\ubuntu\dump2020
but i'm unable to access the mongodump.Instead getting a syntax error on mongorestore