-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(compatibility): - Optimized enum value processing to match Prisma…
…'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.
- Loading branch information
Showing
2 changed files
with
46 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters