# ApexSubstringNode (/docs/core/reference/api/interfaces/ApexSubstringNode)



[@kysoql/core](/docs/core/reference/api) / ApexSubstringNode

Immutable query AST node for an Apex substring expression.

## Properties [#properties]

| Property                                        | Modifier   | Type                                                                                           | Description                                                      |
| ----------------------------------------------- | ---------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------- |
| <a id="api-property-kind" /> `kind`             | `readonly` | `"ApexSubstringNode"`                                                                          | Node discriminator used by Kysoql compilers and plugin visitors. |
| <a id="api-property-source" /> `source`         | `readonly` | [`ApexExpressionOperandNode`](/docs/core/reference/api/type-aliases/ApexExpressionOperandNode) | Source string or expression passed to `substring`.               |
| <a id="api-property-beginindex" /> `beginIndex` | `readonly` | `number`                                                                                       | Zero-based Apex substring start index.                           |
| <a id="api-property-endindex" /> `endIndex`     | `readonly` | `number`                                                                                       | Optional Apex substring end index.                               |
