mirror of
https://github.com/hasura/graphql-engine.git
synced 2025-01-05 22:34:22 +03:00
added parameter quoting for native queries in Snowflake
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10716 GitOrigin-RevId: 87c61866c5bff10439e2b82e29cd9e3df2f337e0
This commit is contained in:
parent
083f321feb
commit
5af867d4e0
@ -497,6 +497,14 @@ use an argument to specify the name of the table in a `FROM` clause.
|
|||||||
|
|
||||||
When making a query, the arguments are specified using the `args` parameter of the query root field.
|
When making a query, the arguments are specified using the `args` parameter of the query root field.
|
||||||
|
|
||||||
|
##### Example: `LIKE` operator
|
||||||
|
|
||||||
|
A commonly used operator is the `LIKE`. When used in a `WHERE` condition, it's usually written with this syntax
|
||||||
|
`WHERE Title LIKE '%word%'`.
|
||||||
|
|
||||||
|
In order to use it with Native Query arguments, you need to use this syntax `LIKE ('%' || {{searchTitle}} || '%')`,
|
||||||
|
where `searchTitle` is the Native Query parameter.
|
||||||
|
|
||||||
## Query functionality
|
## Query functionality
|
||||||
|
|
||||||
Just like tables, Native Queries generate GraphQL types with the ability to further break down the data. You can find
|
Just like tables, Native Queries generate GraphQL types with the ability to further break down the data. You can find
|
||||||
|
Loading…
Reference in New Issue
Block a user