mongoengine find 1

mongoengine find

#var "Cars" is the document, then the parameter is 
#what you are searching it by

Cars.objects(model=2013)

Here is what the above code is Doing:
1. It’s looking for the document “Cars”
2. It’s looking for the parameter “model”
3. It’s looking for the value “2013”

Similar Posts