diff --git a/docs/docs/actions/rest-connectors.mdx b/docs/docs/actions/rest-connectors.mdx index 0d6c9c73fbb..711a0acc3b6 100644 --- a/docs/docs/actions/rest-connectors.mdx +++ b/docs/docs/actions/rest-connectors.mdx @@ -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'])}}` ::: diff --git a/docs/docs/api-reference/syntax-defs.mdx b/docs/docs/api-reference/syntax-defs.mdx index 64aa36e84c5..fd6ff4e12c7 100644 --- a/docs/docs/api-reference/syntax-defs.mdx +++ b/docs/docs/api-reference/syntax-defs.mdx @@ -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" ``` diff --git a/docs/docs/event-triggers/rest-connectors.mdx b/docs/docs/event-triggers/rest-connectors.mdx index f9f5c02ef32..23c1e2977a9 100644 --- a/docs/docs/event-triggers/rest-connectors.mdx +++ b/docs/docs/event-triggers/rest-connectors.mdx @@ -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'])}}`. :::