0

I have a document db in amazon aws.I access this dbye with mongo shell. I want to send the json file that I prepared to this document db from mylocal. How can I do that? How can I turn this mongo db out.

import json
import pymongo

# Making Connection
try:

    myclient = pymongo.MongoClient("mongodb://xxx:zzz@/sample address")
    print("Connected to MongoDB")
except Exception as e:
    print(e)
deadshot
  • 8,881
  • 4
  • 20
  • 39

0 Answers0