mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-14 17:02:49 +03:00
fix escapeUri syntax in rest connectors
## Changelog ✍️ __Type__: bugfix __Product__: community-edition ### Short Changelog Fix usage of `escapeUri` Kriti function in Rest Connectors for Actions and Event Triggers PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7305 GitOrigin-RevId: 8a66fb85b9386a0e4f1f9b5809d56c575a2f90ab
This commit is contained in:
parent
9a59204525
commit
faf9be9d49
@ -382,7 +382,7 @@ X-Hasura-Role: admin
|
||||
|
||||
Note that you must use the `escapeUri` function to urlencode templated values. For example, if you have to use session
|
||||
variables in the URL and those may contain non-ASCII values, then you should provide the template URL as
|
||||
`{{$base_url}}/{{escapeUri $session_variables['x-hasura-user-id']}}`
|
||||
`{{$base_url}}/{{escapeUri($session_variables['x-hasura-user-id'])}}`
|
||||
|
||||
:::
|
||||
|
||||
|
@ -1398,7 +1398,7 @@ HGE provides the following functions that can be used in the template:
|
||||
eg::
|
||||
|
||||
```
|
||||
> {{not true}}
|
||||
> {{not(true)}}
|
||||
false
|
||||
```
|
||||
|
||||
@ -1407,7 +1407,7 @@ HGE provides the following functions that can be used in the template:
|
||||
eg::
|
||||
|
||||
```
|
||||
> {{ escapeUri "?foo=bar/baz" }}
|
||||
> {{ escapeUri("?foo=bar/baz") }}
|
||||
"%3Ffoo%3Dbar%2Fbaz"
|
||||
```
|
||||
|
||||
@ -1419,7 +1419,7 @@ HGE provides the following functions that can be used in the template:
|
||||
eg::
|
||||
|
||||
```
|
||||
> {{getSessionVariable "myVariableName"}}
|
||||
> {{getSessionVariable("myVariableName")}}
|
||||
"myVariableValue"
|
||||
```
|
||||
|
||||
|
@ -412,7 +412,7 @@ X-Hasura-Role: admin
|
||||
|
||||
Use the `escapeUri` function to `urlencode` templated values. For example, if you have to use session variables in the
|
||||
URL and those may contain non-ASCII values, then you should provide the template URL as
|
||||
`{{$base_url}}/{{escapeUri $session_variables['x-hasura-user-id']}}`.
|
||||
`{{$base_url}}/{{escapeUri($session_variables['x-hasura-user-id'])}}`.
|
||||
|
||||
:::
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user