public function listCollections($condition = [], $options = [])
    {
        $this->document = $this->db->getQueryBuilder()->listCollections($condition, $options);
        $cursor = $this->execute();

        return $cursor->toArray();
    }
public function listCollections($condition = [], $options = [])
    {
        $this->document = $this->db->getQueryBuilder()->listCollections($condition, $options);
        $cursor = $this->execute();

        return $cursor->toArray();
    }
public function listCollections ( $ condition = [ ] , $ options = [ ] ) { $ this -> document = $ this -> db -> getQueryBuilder ( ) -> listCollections ( $ condition , $ options ) ; $ cursor = $ this -> execute ( ) ; return $ cursor -> toArray ( ) ; }
Returns the list of available collections.
@param array $condition filter condition.
@param array $options options list.
@return array collections information.
Returns the list of available collections .