Executes a query and auto-fetches (i.e., "queryMore") all results. This is especially useful with large query result sizes, such as over 2000 records. The default maximum fetch size is 10,000 records. Modify this via the options argument.
The SOQL string.
The query options. NOTE: the autoFetch option will always be true.
deploy a zipped buffer from the SDRL with REST or SOAP
data to deploy
JSForce deploy options + a boolean for rest
Getter for the AuthInfo fields.
Getter for the auth fields.
Executes a HEAD request on the baseUrl to force an auth refresh. This is useful for the raw methods (request, requestRaw) that use the accessToken directly and don't handle refreshes.
This method issues a request using the current access token to check if it is still valid. If the request returns 200, no refresh happens, and we keep the token. If it returns 401, jsforce will request a new token and set it in the connection instance.
Send REST API request with given HTTP request info, with connected session information and SFDX headers.
HTTP request object or URL to GET request.
Optional
options: JsonMapHTTP API request options.
Set the API version for all connection requests.
Throws SfError{ name: 'IncorrectAPIVersionError' } Incorrect API version.
The API version.
Executes a query using either standard REST or Tooling API, returning a single record. Will throw if either zero records are found OR multiple records are found.
The SOQL string.
The query options.
Static
createCreates an instance of a Connection. Performs additional async initializations.
Constructor options.
Handles connections and requests to Salesforce Orgs.