graphql-go / graphql-go/graphql

How can i declare enum argument with customized value

Open
#570 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
10.1k
Forks
845
PR merge metrics
No merged PRs in 30d

Description

in typescript , if i declare a enum and want to use customized value ,i can use like this
```
enum RelationEnum{
A = 2
B = 3
C = 4
D = 5
}
```

but i foud it's not supported in graphql, how can i do in graphql ?

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.