-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
$joinRelation doesn't work within $or queries #68
Comments
What is the raw SQL query that you're trying to run using $or & $joinRelation? $joinRelation should be used with $eager, only in the query object's root level and without conditioning. |
something like:
|
It should be possible. Maybe something like this?
query: {
$eager: 'child(exists)',
$joinRelation: 'child(exists)',
$or: {
$not: {
id: null
},
success: true
}
}
בתאריך יום ד׳, 16 באוק׳ 2019, 6:00, מאת RJ Ewing <notifications@github.com
…:
something like:
select * from parent join child on child.parent = parent.id where parent.success or child.id is not null```
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#68?email_source=notifications&email_token=ABB5E3JJAIGQX6QZQA4HGG3QO4GAXA5CNFSM4JBAQTVKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBMMKQI#issuecomment-542688577>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABB5E3PMB6TNRCQSMK46IS3QO4GAXANCNFSM4JBAQTVA>
.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The join relation in the following query is ignored. I'd assume that the same is true for
$and
.The text was updated successfully, but these errors were encountered: