Skip to content
Discussion options

You must be logged in to vote

Understanding raw in QueryView Templates

In Composable QueryViews, inputs can be referenced using template syntax, allowing dynamic values to be inserted into queries.

Literals as Inputs

One common input type is a Literal, which directly inserts a provided value into a query. For example, given a CustomerID Literal input with the template name {{customerId}}, you can reference it in a QueryView like this:

By default, the inserted value is wrapped in quotes:

What Does raw Do?

In some cases, you may want to insert the value without quotes, for instance, when referencing a numeric ID or SQL keyword or table names or column names. To achieve this, you can use the raw option:

{{customerId:raw}}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by temiComposable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants