How to write where clause for relation field inside join field #14588
Unanswered
anhdd-kuro
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
For example, I have Post and User collections. I am concerned about user_rels getting unnecessarily big very soon, so I do not create a direct relation field between post and user. Instead of that, I add a Reads collection that collects information about which users have seen which posts.
Now I want to get only posts that the user
How to achieve that?
I tried
But nothing work, I keep getting Failed query error from dizzle
For example for
where: { 'reads.user': { in: [currentUserId] } }Beta Was this translation helpful? Give feedback.
All reactions