Combine with a new query :param str attribute: attribute of new query :param ChainOperator operation: operation to combine to new query :rtype: Query
(self, attribute, operation=ChainOperator.AND)
| 843 | |
| 844 | @fluent |
| 845 | def new(self, attribute, operation=ChainOperator.AND): |
| 846 | """ Combine with a new query |
| 847 | |
| 848 | :param str attribute: attribute of new query |
| 849 | :param ChainOperator operation: operation to combine to new query |
| 850 | :rtype: Query |
| 851 | """ |
| 852 | if isinstance(operation, str): |
| 853 | operation = ChainOperator(operation) |
| 854 | self._chain = operation |
| 855 | self._attribute = self._get_mapping(attribute) if attribute else None |
| 856 | self._negation = False |
| 857 | return self |
| 858 | |
| 859 | def clear_filters(self): |
| 860 | """ Clear filters """ |
no test coverage detected