module Restforce::Concerns::API

def query_all(soql)

Restforce.configuration.mashify is false.
Returns an Array of Hash for each record in the result if
Returns a Restforce::Collection if Restforce.configuration.mashify is true.

# => ['Foo Bar Inc.', 'Whizbang Corp']
client.query_all('select Name from Account').map(&:Name)
# Find the names of all Accounts

Examples

soql - A SOQL expression.

Only available in version 29.0 and later of the Salesforce API.

QueryAll will also return information about archived Task and Event records.
QueryAll will return records that have been deleted because of a merge or delete.
Public: Executes a SOQL query and returns the result. Unlike the Query resource,
def query_all(soql)
  version_guard(29.0) do
    response = api_get 'queryAll', q: soql
    mashify? ? response.body : response.body['records']
  end
end