Using pymongo I am trying to retrieve the documents in a collection that have a SmallUrl different from null. I\'m trying to get t
SmallUrl
null
The pymongo version of null is the Python None. So query should look like:
None
query
query = { 'Name': {'$regex': search_title, '$options': 'i'}, 'Images.SmallUrl': {'$ne': None}}