def find_one ( self , query ) : mongo_response = yield self . collection . find_one ( query ) raise Return ( self . _obj_cursor_to_dictionary ( mongo_response ) )
mongo query to python converter
Find one wrapper with conversion to dictionary
def find_one(self, query):
        """Find one wrapper with conversion to dictionary

        :param dict query: A Mongo query
        """
        mongo_response = yield self.collection.find_one(query)
        raise Return(self._obj_cursor_to_dictionary(mongo_response))