这是indexloc提供的服务,不要输入任何密码
Skip to content

Metadata export places space between Custom type keys and colon #7296

@theelderbeever

Description

@theelderbeever
❯ hasura version
INFO hasura cli                                    version=v2.0.1

Explanation

Exporting metadata from the hasura server adds a space between the key and the colon in custom types. This seems like a strange formatting and also causes syntax highlighting in at least VSCode to not recognize the code.

Behavior

hasura metadata export
# actions.graphql

# Extra space added
type MyCustomActionResult {
  key1 : String
  key2 : String
}

Expectation

# actions.graphql

# No extra space
type MyCustomActionResult {
  key1: String
  key2: String
}

Metadata

Metadata

Assignees

Labels

c/cliRelated to CLIk/enhancementNew feature or improve an existing feature

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions