public function mongoDbAggregate($pipeline = [], $options = [], $useMaster = false)
{
$cmd = $options + ['aggregate' => $this->getRealTableName(key($this->table)), 'pipeline' => $pipeline];
$data = $this->runMongoCommand($cmd, $useMaster);
return $data[0]['result'];
}