kinda scary that i was looking for these tutorials on Mongo yet found zero of 'em on this website, and then behold. My mentor, tim, uploads what i need :) Thank you Tim.
I really like the style of you writing every example as a function, so you only need to run the function once, and then can continue demonstrating things without deleting the older code.
@@danielhaycraft7004 Agree. The only thing I would have done differently is comment out the calls to the functions rather than delete them. As someone totally new to python (today!) I didn't pick up on that at first and wondered what was happening with the other functions as Tim introduced new functions. I'm so new to python I had to ggole how to comment out code! This is a great video as all I want to create is a quick API back end server to service my angular front end. I've seen routing in another video so should be soon good to go. Thanks Tim.
Thank you for opening my mind and helping me understand all this. As I come from the SQL world it helps a lot that you just put those SQL queries as a reference for certain mongo queries. thanks again! Good job Tim!
12:06 in python if you want a long string split up into to 2 lines because of a styling convention without envoking extra characters like newlines you can use round brackets(): string = "This is the whole string value" string = ("This is the" "whole string value")
i was wondering why you imported bson everytime instead of doing it once, but it makes sense when someone may skip through. unless there's a different answer to mine ! i love it!
I really don't know how you do that but I was working on a flask application which I want to transform its database from sql to mongodb and really struggling and now you are making a video about mongodb. you are really 🐐 man damn. Thank you for all your effort
Thank you for this fantastic video! I have to say, the SQL queries are much more succinct than the queries using NoSQL. But I understand NoSQL could be useful and a better option in some situations.
That's what i thought too, i like this but SQL feels more seamless, but I love the mongo compass! Definetly better than using PostgreSQL on the command line lol!
In the last example (53:34) you are not using the ObjectId _id despite defining it, but only the String id. Was this on purpose? What is better practice? Anyway, thank you a lot for this great video, it really helped me :).
I noticed that as well, plus value of field "_id" in entries of the new 'address' collection is also a plain string rather than of type ObjectId. I assume Tim forgot to convert the latter and also to use the created _id for the field 'owner_id'.
Tim congrats! I'm not sure why I'm having issues with "sll:certificate_verify_failed" but this trick sorted my issue: client = MongoClient(connection_string, tls=True, tlsAllowInvalidCertificates=True) If anyone have different solution it would be much appreciated.
Try to create the mongo user again and assign the new userid and password which should work. Why: I don't know, it might the MongoDB free account behaving this way for any refreshes.
Thanks Tim for your tutorials, they have been of great help to me! I have a request...you could make a video to explain how to upload and view an image on the database? You are great💪🏻
Great work here Tim, however I have been gollowing your tutorial to the letter and I keep getting pymongo.error: Bad auth {Authentication failed, 'code' : 8000, 'codeName' : 'AtlasError'} Frustrated and annoyed, I even checked to see that on password I removed < and > which is common mistake. But still I can not connect with Vscode. Frustratingggg!!! 😡😡😡😡
Hey Tim, count1=person_collection.find().count() I stumbled upon it: AttributeError: 'Cursor' object has no attribute 'count' is this happening because of version ?
Great video! maybe next time use practical names instead of "test". Makes it a little more difficult to wrap my head around when you have something like "test.test"
Hi @Tech with Tim , as per 31:33 I am getting error count = person_collection.find().count() AttributeError: 'Cursor' object has no attribute 'count' please give a fix
Thank you Tim for this amazing video but i have et question when should we use NoSql db instead of Sql db. i mean in which kind of projects is it better to use NoSql db.
Thank you Tim, awesome video! However, I ran into a problem connecting to the newly made MongoDB. I got the following error: [SSL: CERTIFICATE_VERIFY_FAILED] I worked around the problem by setting "tlsinsecure" to True. However is there a better way to fix this? Running python 3.10 and MongoDB is on Azure in Europe
heads up for anyone who gets errors like "[SSL: CERTIFICATE_VERIFY_FAILED]", i had to pip install certifi and import it into the file, then pass it to the MongoClient like MongoClient(CONNECTION_STRING, tlsCAFile=certifi.where())
pymongo.errors.OperationFailure: bad auth : authentication failed, full error: {'ok': 0, 'errmsg': 'bad auth : authentication failed', 'code': 8000, 'codeName': 'AtlasError'} I am getting this error when i am trying to display all my databases. Can anyone help me?