The mongo query object which would be executed if this Query
            object were used

def query(self):
        """ The mongo query object which would be executed if this Query
            object were used """
        if self._rawquery==True:
            return self.__query
        return flatten(self.__query)