Replies: 2 comments 4 replies
-
|
Take a look at these (if you haven't already) and let me know if you have any more thoughts. Keep in mind that a query builder is really just a standalone rule group, so in a sense, each subgroup of a query is itself a "nested" query builder. I think the sandbox demonstrates that concept fairly well. |
Beta Was this translation helpful? Give feedback.
4 replies
-
|
I think this feature, released in v8.8.0, might be what you're looking for: https://react-querybuilder.js.org/docs/tips/subqueries |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
Is it possible to create nested query builders?
I mean situations where we have level 1 fields, but when we select an XYZ field, it has subfields below it.
Example User has the following fields: Id, Name, Email, CreatedBy. If we select CreatedBy, I would like to load the fields available for CreatedBy and display a query builder nested with the fields available for CreatedBy (which is, for example, the User entity).
Maybe something like this can be achieved without nested builders? I tried to create a builder with an empty array of fields and CustomFieldSelector, which has the entire field selection logic, and after selecting it, I tried to dynamically add definitions of such a field to the fields queryBuilder, but unfortunately it doesn't work.
Beta Was this translation helpful? Give feedback.
All reactions