Deeply nested top-filter fails when wrapped in a "or" #3726
-
Environment
Description of issueDoing the following query:
fails with the following error:
Doing this:
works. (Expected behavior vs actual behavior) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
What you want to do is an OR filtering across embedded resources, although for deeply nested resources. You should change your query to something like: curl ...
-d "select=*,qc:quotationCustomers(q:quotation()),quotationCustomers(quotation!inner(associated_personnel_ids))" \
# Edit: I made a mistake here, it should be `=` instead of `.`
-d "qc.q.associated_personnel_ids=cs.%7B1456f47e-62d5-4ecb-92aa-5922ee576086%7D" \
-d "or=(created_by.eq.1456f47e-62d5-4ecb-92aa-5922ee576086,qc.not.is.null)" The empty embed (the one that has the |
Beta Was this translation helpful? Give feedback.
What you want to do is an OR filtering across embedded resources, although for deeply nested resources.
You should change your query to something like:
The empty embed (the one that has the
qc
andq
aliases) is used for filtering and the other one is used to get the data. Check these discussions for more info: #3333, #3663