Skip to content

Commit

Permalink
Kriti Documentation
Browse files Browse the repository at this point in the history
PR-URL: hasura/graphql-engine-mono#5230
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Sean Park-Ross <[email protected]>
GitOrigin-RevId: dea3876b74f822ffe080933c6b9814f544fc968d
  • Loading branch information
3 people authored and hasura-bot committed Sep 6, 2022
1 parent af08d80 commit 77789e3
Show file tree
Hide file tree
Showing 7 changed files with 609 additions and 5 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,6 @@ Further changes are forthcoming along similar lines.
- build: Changes to the `hasura/graphql-engine` Docker image:
- Default graphql-engine docker images (`hasura/graphql-engine:<VERSION>`) now use an Ubuntu base instead of Debian.
- Debian flavour of images (`hasura/graphql-engine:<VERSION>.debian`) are still published to Docker Hub.
- CentOS flavour of images (`hasura/graphql-engine:<VERSION>.centos`) are no longer supported.

## v2.10.0-beta.1

Expand Down Expand Up @@ -560,7 +559,8 @@ Please submit any feedback you may have for this feature at https://github.com/h
- Default graphql-engine docker images (`hasura/graphql-engine:<VERSION>`) now use an Ubuntu base instead of Debian.
- Debian flavour of images (`hasura/graphql-engine:<VERSION>.debian`) are still published to Docker Hub.
- CentOS flavour of images (`hasura/graphql-engine:<VERSION>.centos`) are no longer supported.

- docs: Kriti templating documentation sections added

## v2.9.0

### Event Triggers for MS SQL Server
Expand Down
16 changes: 15 additions & 1 deletion docs/docs/actions/rest-connectors.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,14 @@ REST Connectors for actions are used to integrate existing REST APIs to the Grap
or modifications to the upstream code.

REST Connectors modify the default HTTP request made by an action to adapt to your webhook's expected format by adding
suitable transforms.
suitable transforms.

:::info Note

General information about the templating used in REST Connectors can be found in the
[Kriti templating](/api-reference/kriti-templating.mdx) section of the documentation.

:::

:::tip Supported from

Expand Down Expand Up @@ -135,6 +142,13 @@ The context variables available in transforms are:
| $base_url | Original configured webhook handler URL |
| $session_variables | Session variables |

In addition to these variables, the following functions are available in addition to the
standard [Basic Functions](/api-reference/kriti-templating.mdx#kriti-function-reference):

| Context variable | Value |
|----------------------------|-------------------------------------------------------|
| `getSessionVariable(NAME)` | Look up a session variable by name (case-insensitive) |

#### Console sample context {#action-transforms-sample-context}

The console allows you to preview your transforms while configuring them. To avoid exposing sensitive information on the
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/api-reference/cloud-api-reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ keywords:
- docs
- API
- API reference
sidebar_position: 13
sidebar_position: 14
sidebar_label: Hasura Cloud API Reference
sidebar_class_name: cloud-icon
---
Expand Down
Loading

0 comments on commit 77789e3

Please sign in to comment.