module Restforce::Concerns::API
def query(soql)
Returns a Restforce::Collection if Restforce.configuration.mashify is true.
# => ['Foo Bar Inc.', 'Whizbang Corp']
client.query('select Name from Account').map(&:Name)
# Find the names of all Accounts
Examples
soql - A SOQL expression.
Public: Executs a SOQL query and returns the result.
def query(soql) response = api_get 'query', :q => soql mashify? ? response.body : response.body['records'] end