findMany
fails to select
an enum list & a relation scalar at the same time
#2525
Labels
bug/1-unconfirmed
Bug should have enough information for reproduction, but confirmation has not happened yet.
kind/bug
A reported bug.
tech/engines
Issue for tech Engines.
Milestone
I was tempted to post this as a comment on #2442. I have a feeling this, #2442 & #2501 are all the same issue but can't prove it, so I'm creating separate ones. Please move if you think otherwise!
Again, I first discovered this while trying to reproduce a report on Studio: prisma/studio#406
Bug description
For a model with an enum list, certain combinations of
select
crashHow to reproduce
Use this schema:
And this script:
You should see this error:
So the script above seems to only crash when both
startupId
&scoutingFIles
exist inselect
. I think this is also aselect
bug rather than acreate
bug, because even if you create the records from Postico or something, Client cannot fetch it.Expected behavior
Script shouldn't crash
Environment & setup
The text was updated successfully, but these errors were encountered: