Is there any way to use a hyphenated value in an enum?

schema:

enum WrittenLang {
  en
  en-gb
  en-us
  ko
  fr
}

type WrittenRep {
  id: ID!
  lang: WrittenLang!
  value: String!
}

error:

{"errors":[{"message":"resolving updateGQLSchema failed because input:419: Expected Name, found \u003cInvalid\u003e\n (Locations: [{Line: 3, Column: 4}])","extensions":{"code":"Error"}}]}%

These values are ISO compliant, so I don’t want to modify them. I tried the following, which didn’t work:

enum WrittenLang {
  en
  "en-gb"
  "en-us"
  ko
  fr
}

Is this a limitation of Dgraph or a limitation of GraphQL spec?

hm

EDIT: So it’s a GraphQL spec issue, and Strapi decided to just break the spec on this one: Allow special characters in an enum by petersg83 · Pull Request #12200 · strapi/strapi · GitHub

EDIT: Decided to just use underscores:

enum WrittenLang {
  en
  en_gb
  en_us
  ko
  fr
}

type WrittenRep {
  id: ID!
  lang: WrittenLang!
  value: String!
  lexicalForm: LexicalForm!
}