hasura / hasura/codegen-assets

destructure the request payload for better readability of the generated code

Open
#27 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
28
Forks
18
PR merge metrics
No merged PRs in 30d

Description

We can generate:

```js
const {
input: { arg1, arg2 },
session_variables,
action: { name: actionName }
} = req.body;
```

Currently we just generate:

```js
const { arg1, arg2 } = req.body.input;
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.