Skip to content

Consider adding graphql enum values as JS object to npm package #849

@Taucher2003

Description

@Taucher2003

The object for each enum should have the values as key and an object containing metadata as value. That object can contain the description and if that value is deprecated

For example:

export const SomeRandomEnum = {
  FIRST_VALUE: { description: "The first value" },
  SECOND_VALUE: { description: "The second value", deprecated: true, deprecationReason: "There is no choice anymore" }
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions