Docs: update raw format for data source variable (#75488)

* Update index.md

Please see this PR for the breaking change to raw.  https://github.com/grafana/grafana/pull/69259

* Update docs/sources/dashboards/variables/variable-syntax/index.md

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>

* Fixed linting error

---------

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
This commit is contained in:
deresolution20 2023-10-10 13:12:58 -06:00 committed by GitHub
parent 5604305271
commit 3d84956215
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -135,12 +135,12 @@ Interpolation result: 'test1.|test2'
### Raw
Turns off data source-specific formatting, such as single quotes in an SQL query.
The raw format for a data source variable returns the UID (unique identifier) of the data source, rather than its name.
```bash
servers = ['test.1', 'test2']
String to interpolate: '${var_name:raw}'
Interpolation result: 'test.1,test2'
datasourceVariable = 'd7bbe725-9e48-4af8-a0cb-6cb255d873a3'
String to interpolate: '${datasourceVariable:raw}'
Interpolation result: 'd7bbe725-9e48-4af8-a0cb-6cb255d873a3'
```
### Regex