Nested disconnect fails on MongoDB with extendedWhereUnique #16869
Closed
Labels
bug/2-confirmed
Bug has been reproduced and confirmed.
kind/bug
A reported bug.
team/client
Issue for team Client.
tech/engines
Issue for tech Engines.
topic: extendedWhereUnique
Preview Feature
topic: mongodb
topic: previewFeatures
Issue touches on an preview feature flag
Milestone
Bug description
Consider this datamodel
And say you run this query
The query will fail because MongoDB doesn't render the join required to filter on
Child.non_unique
.Expected behavior
It looks impossible to perform updates based on filters that require joining foreign collections.
We might need to remove the ability to filter (for disconnect) on MongoDB when the relation field being filtered isn't inlined on the enclosing model.
Environment & setup
Prisma Version
The text was updated successfully, but these errors were encountered: