        $queryType = request()->input('queryType');

        // Query Type
        if ($queryType == BaseConfig::QUERY_TYPE_DB_QUERY) {
            $baseQueryRes = $baseQuery->executeDbQuery();
        } elseif ($queryType == BaseConfig::QUERY_TYPE_SQL_QUERY) {
            $baseQueryRes = $baseQuery->executeSqlQuery();
        } else {
            $baseQueryRes = $baseQuery->executeQuery();
        }

        // Result Package
        $data = [];
        $result = $baseQueryRes['result'];
        $r = new $this->resource($result);