hasura / hasura/graphql-engine

scalars in metadata/actions.graphql

Open
#8,450 6 comments 0 reactions 0 assignees View on GitHub
c/actions c/migrations
Dominant language
TypeScript
Stars
32.1k
Forks
3k
PR merge metrics
PR metrics pending

Description

### Version Information

Server Version: 2.6.0
CLI Version (for CLI related issue): 2.6.0

### Environment

OSS

### What is the expected behaviour?

File `metadata/actions.graphql` should contains scalars definitions.

Without them file can't be used for code generation with tools like [GraphQL Code Generator](https://www.graphql-code-generator.com)

### Keywords

actions.graphql scalars

### What is the current behaviour?

Scalars used in actions are not defined in file `metadata/actions.graphql`

### How to reproduce the issue?

Run `hasura export` command in hasura-cli.

### Screenshots or Screencast

image

### Any possible solutions?

Include scalars definitions for types used in actions like:

```graphql

scalar uuid

type Mutation {
addPerons(
personId: uuid
): String!
}

```

### 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?

I am not familiar with Haskell

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.