Skip to content

Add Support for Renaming Enums #481

@allenkaplan

Description

@allenkaplan

Is your feature request related to a problem? Please describe.
Rename/change enum names similar to renaming models https://prisma.typegraphql.com/docs/advanced/renaming-model/

Describe the solution you'd like
annotate similar to how models are done /// @@TypeGraphQL.type(name: "newName")

Describe alternatives you've considered
rebuild the enum with the desired name manually

Additional context
we have conflicts from legacy declared enums in our app and newer ones we want to use from prisma enum, but when trying to have them both we run into an error

Error: Schema must contain uniquely named types but contains multiple types named "FooEnumName".

Metadata

Metadata

Assignees

No one assigned

    Labels

    communitySomething initiated by the communityenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions