Merhaba,

# create a connection with Mongoclient
mongo_client = MongoClient(‘localhost’, 27017)
db = mongo_client[‘new_db’] # create a database
new_collection = db.new_collection # create a collection

burada koyu renkle gosterdigim satirda new_collection adinda MongoDB'de yeni bir collection olusturuyoruz.

Yazinin devaminda followers_collection gibi baska collection'lara ihtiyac duydugumuz da da ayni yukarida oldugu gibi

followers_collection = db.followers_collection

diyerek yeni collection olusturabiliriz.

Sevgiler

Written by

Ph.D. Cand. in CmpE @Boğaziçi University. #ai #privacy #uncertainty #ml #dl #running #cycling #she/her https://www.cmpe.boun.edu.tr/~gonul.ayci/

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store