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
jsonProtocol doesn't query enum fields by default #18148
Comments
Confirmed this is happening for me after upgrading from 4.10.1 to 4.11.0 |
Should help to prevent issues like #18148
Thanks for fixing this quickly! I would really love to be able to try out the rest of 4.11 so if there is any way you can release a patch version with this fix that would be quite nice |
A patch is quite a big deal in what it signals to all our users, so a bug in a preview feature would not qualify for that. But via this PR #18165 it will be available in PS: I am pretty sure you will love the results :D |
Update: |
Should help to prevent issues like #18148
Short notice just in case: |
Should help to prevent issues like #18148
|
@revmischa @veiico Could I see you
|
Yes
Not using DataProxy |
* test(client): Test default selection contents Should help to prevent issues like #18148 * Add case for enum lists
Bug description
When querying a table that has an enum field with the jsonProtocol #18095 feature enabled, the data won't include the enum field by default.
How to reproduce
jsonProtocol
preview featureawait prisma.db.tableName.findMany();
Expected behavior
The returned data will be the same as without the jsonProtocol feature
With jsonProtocol
Without jsonProtocol
Adding a
select
to the query and explicitly telling it to select that field seems to fix it.With jsonProtocol
Prisma information
Environment & setup
Prisma Version
The text was updated successfully, but these errors were encountered: