Raw option for QueryView Templates #35
|
When editing a QueryView and using a template to reference an input, it lets you add an option after the inputs name -- e.g. |
Replies: 1 comment
Understanding
|
|
When editing a QueryView and using a template to reference an input, it lets you add an option after the inputs name -- e.g. |
Understanding
|
Understanding
rawin QueryView TemplatesIn 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
CustomerIDLiteral 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
rawDo?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
rawoption:{{customerId:raw}}