Skip to content

OR-Filtering in resource embedding #3165

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

You must be logged in to vote

You need to do null filtering on embedded resources to allow or across embedded tables.

The or operator only groups by columns in the same level, it cannot nest embedded resources, unless you use not.is.null for the embedding. In other words, in your first example, you need to separate the lt_8 filter in a separate query string and add lt_8.not.is.null to the or filter. Your second example is closer to what you want but you were missing the null filter inside the or, like this:

or=(email.ilike(any).{*admin*},department.ilike(any).{*admin*},lt_8.not.is.null)&lt_8.user_group.label=ilike(any).{*admin*}

This syntax it's a bit inconvenient, so a better alternative is being discussed in issue #…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@MHC2000
Comment options

Answer selected by laurenceisla
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 #3162 on January 16, 2024 21:58.