Issue with Filtering Using Logical Operators #42
-
I'm experiencing issues with filtering using logical operators in our current implementation. Specifically, I'm trying to apply a filter where multiple conditions are combined using AND, and one of these conditions involves an OR between two fields. However, I haven't been able to get this working as expected. Here's an example of what I'm trying to achieve:
Currently, the library provides and and or fields. As I understand it, the and field is an array of filters where each filter is combined using AND comparatives, while the or field is another array of filters combined using OR comparatives. In my case, I need to use a combination of both. However, the current implementation does not seem to support this structure, or there is a misunderstanding on how to properly use the logical operators in this context. Example Query with TypeORM QueryBuilder Let's assume we have an entity called ExampleEntity with the following fields: fieldA, fieldB, fieldC, and fieldD.
Questions:
Thank you for your assistance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@MainqueQwavee Hey! Thanks for the feedback. Just implemented this feature in the 1.10.0 version https://github.com/Adrinalin4ik/Nestjs-Graphql-Tools/releases/tag/0.10.0 |
Beta Was this translation helpful? Give feedback.
@MainqueQwavee Hey! Thanks for the feedback. Just implemented this feature in the 1.10.0 version https://github.com/Adrinalin4ik/Nestjs-Graphql-Tools/releases/tag/0.10.0