You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Correct variant is where: {user: {id: {equals: ctx.user.id}}}
These strange errors where spawned because of type mismatch: user id should be a string, but I've passed an int. So the problem is in error handling department
Hey @terion-name, great you figure it out. Can you maybe just open a new issue about the bad error message? Then our developers do not have to understand the first issue description here but can directly see what the problem is. Thanks. (Afterwards you can just close this issue.)
Bug description
Given query:
Errors like this:
Ok, changing query as it says, using UsersUserRelationFilter:
Now it errors like this and says that first variant should be correct:
Sooo.. how?
Yes, in this concrete case I can use simply
userId
, but in any case relation filter should workHow to reproduce
Use models provided below and run queries provided above
Expected behavior
Either variant works
Prisma information
Environment & setup
Prisma Version
The text was updated successfully, but these errors were encountered: