MongoDB: Filtering by relation returns no results #7057
Labels
bug/2-confirmed
Bug has been reproduced and confirmed.
kind/bug
A reported bug.
team/client
Issue for team Client.
topic: mongodb
topic: prisma-client
Milestone
Bug description
Given a schema with two models:
User
andPost
and a relation between the two, when querying forpost
s based on the author's email returns no results.How to reproduce
No results are returned
When trying to filter using the
authorId
the correct results are returned:Expected behavior
Calling
findMany
with filtering based on theauthor.email
should return the posts.Prisma information
Prisma schema
Environment & setup
The text was updated successfully, but these errors were encountered: