I have a short list of string literals which I would like to have represented in my GraphQl definition. I tried using enum, but it's not for string literals.
Say I had some list of string literals:
export const DanceTypeList = [
"truffle-shuffle",
"stanky-leg",
"ghost-ride-the-whip",
] as const;
// equivalent to ("truffle-shuffle" | "stanky-leg" | "ghost-ride-the-whip")
export type DanceType = typeof DanceTypeList[number];
How could I take this and make a GraphQl type which was more descriptive than GraphQlString? Ideally it would be able to auto-suggest in the interactive UI.