public function query($query, $options = [])
    {
        $url = $this->instanceURLRepo->get();
        $url .= $this->resourceRepo->get('query');
        $url .= '?q=';
        $url .= urlencode($query);

        $queryResults = $this->request($url, $options);

        return $queryResults;
    }
public function query($query, $options = [])
    {
        $url = $this->instanceURLRepo->get();
        $url .= $this->resourceRepo->get('query');
        $url .= '?q=';
        $url .= urlencode($query);

        $queryResults = $this->request($url, $options);

        return $queryResults;
    }
public function query ( $ query , $ options = [ ] ) { $ url = $ this -> instanceURLRepo -> get ( ) ; $ url .= $ this -> resourceRepo -> get ( 'query' ) ; $ url .= '?q=' ; $ url .= urlencode ( $ query ) ; $ queryResults = $ this -> request ( $ url , $ options ) ; return $ queryResults ; }
Executes a specified SOQL query.

@param string $query
@param array  $options

@return array $queryResults
Executes a specified SOQL query .