# JsforceConnection (/docs/jsforce/api/interfaces/JsforceConnection)



[@kysoql/jsforce](/docs/jsforce/api) / JsforceConnection

Subset of a JSforce connection required by Kysoql query execution.

## Methods [#methods]

<a id="api-query" />

### query() [#query]

```ts
query(soql, options?): PromiseLike<unknown>;
```

Runs SOQL through JSforce; `scanAll` enables Salesforce query-all semantics.

#### Parameters [#parameters]

| Parameter          | Type                        | Description                                                              |
| ------------------ | --------------------------- | ------------------------------------------------------------------------ |
| `soql`             | `string`                    | -                                                                        |
| `options?`         | \{ `scanAll?`: `boolean`; } | -                                                                        |
| `options.scanAll?` | `boolean`                   | Use JSforce query-all semantics, including deleted and archived records. |

#### Returns [#returns]

`PromiseLike`\<`unknown`>

***

<a id="api-querymore" />

### queryMore() [#querymore]

```ts
queryMore(locator): PromiseLike<unknown>;
```

Loads the next JSforce page using a query locator.

#### Parameters [#parameters-1]

| Parameter | Type     |
| --------- | -------- |
| `locator` | `string` |

#### Returns [#returns-1]

`PromiseLike`\<`unknown`>
