src/Webiny/AnalyticsDb/AnalyticsDb.php
public function query($entity, $ref = 0, array $dateRange)
    {
        return new Query($this->mongo, $entity, $ref, $dateRange);
    }
public function query($entity, $ref = 0, array $dateRange)
    {
        return new Query($this->mongo, $entity, $ref, $dateRange);
    }
public function query ( $ entity , $ ref = 0 , array $ dateRange ) { return new Query ( $ this -> mongo , $ entity , $ ref , $ dateRange ) ; }
Query the analytics data.

@param string     $entity
@param string|int $ref
@param array      $dateRange [fromTimestamp, toTimestamp]

@return Query
Query the analytics data .