@property
def pattern(self):
    'Extract query pattern from operations.'
    if (not self._pattern):
        if ((self.operation in ['query', 'getmore', 'update', 'remove']) or (self.command in ['count', 'findandmodify'])):
            self._pattern = self._find_pattern('query: ')
        elif (self.command == 'find'):
            self._pattern = self._find_pattern('filter: ')
    return self._pattern
Extract query pattern from operations.
@property
def pattern(self):
    
    if (not self._pattern):
        if ((self.operation in ['query', 'getmore', 'update', 'remove']) or (self.command in ['count', 'findandmodify'])):
            self._pattern = self._find_pattern('query: ')
        elif (self.command == 'find'):
            self._pattern = self._find_pattern('filter: ')
    return self._pattern