hasura / hasura/graphql-engine

console: codegen fails for actions with scalar output

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

Description

### Version Information

Server Version: v2.6.0

### Environment

All

### What is the expected behaviour?

Action codegen should work for actions returning scalars

### Keywords

### What is the current behaviour?

The console throws an error while generating code

### How to reproduce the issue?

1. Add the following action

```graphql
type Query {
action_name(
actionInput: [String!]
): String!
}
```

2. Head to the codegen tab

### Screenshots or Screencast

![codegen](https://user-images.githubusercontent.com/54616969/171180188-01f6f7d8-4c0b-40f6-808b-d99b0a071cb4.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.