def where(self, code):
        self.__check_okay_to_chain()
        if not isinstance(code, Code):
            code = Code(code)

        self.__spec["$where"] = code
        return self
Adds a $where clause to this query.
dataset/ETHPy150Open blynch/CloudMemeBackend/pymongo/cursor.py/Cursor.where