Skip to content

fix(compatibility): - Optimized enum value processing to match Prisma… #235

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

javan-b
Copy link

@javan-b javan-b commented Feb 21, 2025

BREAKING CHANGE:
This change ensures that enum values are processed in a way that aligns with Prisma's engine, maintaining consistency in documentation handling and filtering out unnecessary entries.- Added specific handling for @deprecated documentation, mapping it to - Updated the registerEnum function to properly filter out empty entries in the valuesMap based on enum value documentation.- Ensured that enum values without description or deprecationReason are excluded from the valuesMap when registering with registerEnumType.the deprecationReason field in line with Prisma Engine behavior.- Improved compatibility with Prisma's enum value documentation format by ensuring only relevant metadata is included in the GraphQL schema.

…'s expected documentation structure.

BREAKING CHANGE:
This change ensures that enum values are processed in a way that aligns with Prisma's engine,
maintaining consistency in documentation handling and filtering out unnecessary entries.- Added
specific handling for `@deprecated` documentation, mapping it to - Updated the `registerEnum`
function to properly filter out empty entries in the `valuesMap` based on enum value documentation.-
Ensured that enum values without `description` or `deprecationReason` are excluded from the
`valuesMap` when registering with `registerEnumType`.the `deprecationReason` field in line with
Prisma Engine behavior.- Improved compatibility with Prisma's enum value documentation format by
ensuring only relevant metadata is included in the GraphQL schema.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant