hasura / hasura/graphql-engine

Payload Transformation Error

Open
#8,014 4 comments 0 reactions 0 assignees View on GitHub
c/console t/gql-services
Dominant language
TypeScript
Stars
32.1k
Forks
3k
PR merge metrics
PR metrics pending

Description

### Version Information

**Hasura Version:**
v2.1.1

**What is the expected behavior?**

I expect Hasura to accept a float in the sample input of the Payload transformation.

**Keywords**
Payload transformation, actions.

**What is the current behavior?**

After saving the action, it erases the float variable from the input and throws and error.

**How to reproduce the issue?**

Create an action with a float variable as an input.
Click on "+ Add Payload Transformation".
Add a float argument in the input.
Edit "Configure Request Body" to a valid response body.

**Screenshots before saving the action**

![image](https://user-images.githubusercontent.com/68576818/148860437-010bbb57-04e9-4478-afd2-479ddfb96f84.png)
![image](https://user-images.githubusercontent.com/68576818/148860539-aa21d924-28e8-4c3e-84ca-aafc737ff8e0.png)

**Screenshots after saving the action**

![image](https://user-images.githubusercontent.com/68576818/148860602-249b0cae-4b59-497a-b8a9-7d0ed102ef3c.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.