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:
Tirumarai Selvan 2022-12-21 20:05:57 +05:30 committed by hasura-bot
parent 9a59204525
commit faf9be9d49
3 changed files with 5 additions and 5 deletions

View File

@ -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'])}}`
:::

View File

@ -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"
```

View File

@ -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'])}}`.
:::