Skip to content

Commit ca18221

Browse files
authored
Update README.md
1 parent dfaa0ed commit ca18221

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

README.md

+7-10
Original file line numberDiff line numberDiff line change
@@ -138,21 +138,16 @@ Will return:
138138

139139
Query Wrapper with Where Criteria Expressions
140140
-------------------------------------
141-
This library supports flexible type safe criteria expressions with user-friendly SQL query syntax semantics using `where` arguments and `select` field to specify the entity graph query with entiy attribute names as a combination of logical expressions like OR, AND, EQ, NE, GT, GE, LT, LR, IN, NIN, IS_NULL, NOT_NULL.
141+
This library supports flexible type safe criteria expressions with user-friendly SQL query syntax semantics using `where` arguments and `select` field to specify the entity graph query with entiy attribute names as a combination of logical expressions like OR, AND, EQ, NE, GT, GE, LT, LR, IN, NIN, IS_NULL, NOT_NULL, BETWEEN, NOT_BETWEEN.
142142

143143
For Example:
144144

145145
query {
146-
Humans(where: {
147-
OR: {
148-
name: { LIKE: "Luke" }
149-
OR: {
150-
name: { LIKE: "Darth"}
151-
}
146+
Humans(where: {
147+
name: { IN: ["Luke Skywalker", "Darth Vader"] }
148+
}) {
149+
select { name }
152150
}
153-
}) {
154-
select { name }
155-
}
156151
}
157152

158153
Will return:
@@ -323,6 +318,8 @@ Will return:
323318

324319
The JPA DataFetcher implementation will execute an extra query to get the total elements only if you have requested 'pages' or 'total' fields.
325320

321+
Paging arguments support variable bindings.
322+
326323
Sorting
327324
-------
328325

0 commit comments

Comments
 (0)