Skip to content

Commit 58f2a68

Browse files
monicamiyasatojaiswalsk
authored andcommitted
Update README.md
1 parent af42fa2 commit 58f2a68

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
[![Apache 2](http://img.shields.io/badge/license-Apache%202-brightgreen.svg)](http://www.apache.org/licenses/LICENSE-2.0)
55

66
## Overview
7-
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.
88

99
## Requirements
1010
* grahql-java (v13.x)
1111
* Java 8.x & Above
1212

1313
## 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.
1515
### Queries
1616

1717
#### OR
@@ -156,7 +156,7 @@ public class EmployeeService {
156156
}
157157
```
158158
### 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.
160160

161161
```java
162162
private String getExpression(DataFetchingEnvironment env) {
@@ -174,7 +174,7 @@ private String getExpression(DataFetchingEnvironment env) {
174174
WHERE ((lastName = 'Jaiswal') OR (firstName LIKE '%Saurabh%'))
175175
```
176176
## 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
178178
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
179179
filter input, filter library parses the GraphQL generated AST and generates a new expression AST with correct syntax and semantics.
180180
After this step, the generated AST looks as shown below in memory.

0 commit comments

Comments
 (0)