+ 1

Pymongo search value

I want to search for a particular value from my mongodb database. In SQL we search 'select table table name where name='xyx'".How can we achieve same with mongodb .

9th May 2019, 10:26 AM
Prashant Pokhriyal
Prashant Pokhriyal - avatar
2 odpowiedzi
+ 9
For future projects, if you use mongodb and want better control over the data, you should consider using an object data mapper such as mongoengine http://mongoengine.org I allows you to declare model schemas for your mongodb collections and run queries on your data https://stackoverflow.com/questions/5712857/pymongo-vs-mongoengine-for-django
9th May 2019, 1:26 PM
Burey
Burey - avatar
9th May 2019, 10:33 AM
MsJ
MsJ - avatar