import pymongo
      
      client = pymongo.MongoClient("mongodb://localhost:27017/")
      
      # MongoDB database name
      db = client[""]
      
      # MongoDB collection name
      collection = db[""]
      
      # Find All Occurences
        all_match = collection.find({"name": "sklearn"})
        for i in all_match:
          print(i)

      Python language logo
      Find multiple document - MongoDB

      Pymongo

      Find multiple data from Mongo DB collection.

      Shortcut: find

      Filename pattern: *.py

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.