---
title: Raw query
slug: reference/raw-query
docTags: 
createdAt: 2025-10-24T08:30:52.766Z
---

## Raw query

This query type is used to query time series databases directly.

### Database selection

Select a database to query.

This can also be controlled by a dashboard variable.

### Writing the query

Consult the documentation for the time series database you are querying.

- Influx 1: [InfluxQL docs](https://docs.influxdata.com/influxdb/v1/query_language)
- Influx 2: [Flux docs](https://docs.influxdata.com/flux/v0/query-data/)
