You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This library helps GraphQL developers in building awesome apis with fine grain filtering support.
7
+
This library helps GraphQL developers build awesome APIPs with fine grain filtering support.
8
8
9
9
## Requirements
10
10
* grahql-java (v13.x)
11
11
* Java 8.x & Above
12
12
13
13
## Features
14
-
This library will help in creating filter conditions which are dynamically created by combining any supported filter criteria field along with any of the supported logical operations including AND, OR and NOT. For eg: consider the below examples.
14
+
This library will help create filter conditions which are dynamically created by combining any supported filter criteria field along with any of the supported logical operations including AND, OR and NOT. Consider the examples below.
15
15
### Queries
16
16
17
17
#### OR
@@ -156,7 +156,7 @@ public class EmployeeService {
156
156
}
157
157
```
158
158
### SQL WHERE
159
-
Generates SQL WHERE clause which can be then directly applied to any SQL database.
159
+
Generates SQL WHERE clause which can then be directly applied to any SQL database.
WHERE ((lastName = 'Jaiswal') OR (firstName LIKE '%Saurabh%'))
175
175
```
176
176
## How it works?
177
-
When graphql-java receives and parses the source filter expression, it creates an AST in memory which contains all the fields, operators and values supplied in the source filter, but the problem is
177
+
When graphql-java receives and parses the source filter expression, it creates an AST in memory which contains all the fields, operators and values supplied in the source filter. The problem is
178
178
the generated AST does not know about the valid rules of a correct logical expression with multiple filter criteria. In order to get a meaningful expression out of the source
179
179
filter input, filter library parses the GraphQL generated AST and generates a new expression AST with correct syntax and semantics.
180
180
After this step, the generated AST looks as shown below in memory.
0 commit comments