hasura / hasura/graphql-engine

Default root fields in console are incorrect for `graphql-default` naming convention

Open
#8,568 1 comment 0 reactions 0 assignees View on GitHub
k/bug
Dominant language
TypeScript
Stars
32.1k
Forks
3k
PR merge metrics
PR metrics pending

Description

### Version Information

Server Version: v2.8.0-beta.1

### Environment

OSS

### What is the expected behaviour?

Show default GraphQL root fields correctly.

### Keywords

HASURA_GRAPHQL_DEFAULT_NAMING_CONVENTION, Custom GraphQL Root Fields

### What is the current behaviour?

Setting `HASURA_GRAPHQL_DEFAULT_NAMING_CONVENTION` to `graphql-default` still shows default GraphQL Root Field names as snake case (`hasura-default`).

### How to reproduce the issue?

1. Start Hasura v2.8.0-beta.1 with env var `HASURA_GRAPHQL_DEFAULT_NAMING_CONVENTION=true`
2. Create a table e.g. `customers`.
3. Go to the newly created table and click **Modify** and click **edit** under **Custom GraphQL Root Fields*.

### Screenshots or Screencast

![CleanShot 2022-06-08 at 21 41 10@2x](https://user-images.githubusercontent.com/331818/172703800-68f12e40-ded4-4c12-a1f4-fcceebb6824e.png)

### Any possible solutions?

Expose the root fields, even if no custom root fields are set, to set the default root fields in the console.

### Can you identify the location in the source code where the problem exists?

No

### If the bug is confirmed, would you be willing to submit a PR?

Yes, with some help.

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.