Skip to content

Filtering With Or Logical Operator on Embedded Resources Inconsistent Behavior #3349

Answered by laurenceisla
liamcsdev97 asked this question in Q&A
Discussion options

You must be logged in to vote

I wouldn't call it "inconsistent" behavior, since similar queries using different resources will work in the same way. But I get that it can become confusing when filters across embeddings are used.

The filter I am trying to create is the following:
select all matches where the requesting boxer's first name is 'Abigail' or the receiving boxer's last name is 'Carrol'

If you only need the matches then your first query is enough, as you mentioned. Now, when you ask for the data inside requesting_boxer and receiving_boxer here:

.from("matches")            
.select("*,requesting_boxer(*),receiving_boxer(*)")            
.eq("requesting_boxer.first_name", "Abigail")            
.eq("receiving…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by liamcsdev97
Comment options

You must be logged in to vote
2 replies
@laurenceisla
Comment options

@laurenceisla
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #3347 on March 25, 2024 06:49.