Skip to content

Commit b169b71

Browse files
xperiandriViktor Tochonov
authored andcommitted
Added description sample about or condition in the ObjectListFilter
1 parent 1f119c6 commit b169b71

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,24 @@ query TestQuery {
354354
appearsIn
355355
homePlanet
356356
friends (filter : { name_starts_with: "A" }) {
357+
friends (filter : { or : { name_starts_with: "A", name_starts_with: "B" }}) {
358+
id
359+
name
360+
}
361+
}
362+
}
363+
```
364+
365+
Also you can apply `not` operator and combine filters with `and` and `or` operators like this:
366+
367+
```graphql
368+
query TestQuery {
369+
hero(id:"1000") {
370+
id
371+
name
372+
appearsIn
373+
homePlanet
374+
friends (filter : { or : { name_starts_with: "A", name_starts_with: "B" }}) {
357375
id
358376
name
359377
}

0 commit comments

Comments
 (0)