Retrieving objects based on exact relationships #9891
Unanswered
njutn95
asked this question in
Support Questions
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.
-
Hi all,
I have the following structure:
What I'm trying to achieve is to select all users that have books
1, 3, 7
. But not select users that have books1, 7
or those that have1, 3, 7, 10
. In other words, I'm trying to do an exact match. My current solution is to select all users, and then loop through them to filter like:But it's far from optimal with large sets, so I'm looking at how to offload that part to the database.
Beta Was this translation helpful? Give feedback.
All reactions