Part 7 - Query document in MongoDB using PyMongo | Python and MongoDB

preview_player
Показать описание
In this video we will learn that how we can write our own filter query and then pass that to find method for querying the documents. we will see an example of and clause also.
Рекомендации по теме
Комментарии
Автор

Can you create a full working database with mongodb and python with different functions fetching data ???

akshat
Автор

not_user is a list of int variables.i am only getting the first record in my_doc. Why is it that i am getting only 1 record?


for i in not_user:
filter = {"id": i}
my_doc = my_col1.find(filter)

for doc in my_doc:
print(doc)

ayushkathpalia