Skip to content
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

[v4] Enum type throws errors if old values are encountered #435

Open
kinglozzer opened this issue Jan 19, 2022 · 0 comments
Open

[v4] Enum type throws errors if old values are encountered #435

kinglozzer opened this issue Jan 19, 2022 · 0 comments

Comments

@kinglozzer
Copy link
Member

I had an enum set up with values of 2D and 3D, there’s a regex somewhere (probably this one?) that didn’t like these values so I changed them to TwoDimensional and ThreeDimensional.

Before I updated the old values in the database, queries threw an error:

Expected a value of type "DimensionsEnum" but received: 3D

I’m not entirely sure what this module should do here. We ensure old values are preserved during dev/build, so it’s therefore possible for those values to be returned from queries - perhaps because of that we should support them?

DBEnum has a getEnumObsolete() method that fetches all values including obsolete ones.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants