Skip to content

Commit

Permalink
Added Example of all features of queries (#999)
Browse files Browse the repository at this point in the history
  • Loading branch information
iBobik authored Sep 7, 2023
1 parent d3c6f1b commit 293cd1b
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions doc/queries/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,56 @@ If we paste the above query in GraphiQL we will get the following result :
}
}
```

## Example of all features
```
{
nodeQuery(filter: {
conjunction: AND
conditions: [{
field: "nid"
value: ["1", "10"]
operator: BETWEEN
}]
groups: [{
conjunction: OR
conditions: [{
field: "title"
value: ["graphql filtering rocks"]
}, {
field: "title"
value: ["graphql is awesome"]
operator: LIKE
}, {
field: "uid"
value: ["1"]
}],
groups: [{
conjunction: AND
conditions: [{
field: "field_tags.target_id"
value: ["1"]
}]
}]
}]
}, sort: [{
field: "nid"
direction: ASC
}, {
field: "uid"
direction: DESC
}]) {
entities {
entityUuid
entityBundle
entityPublished
entityType
entityChanged
entityId
entityCreated
entityLabel
}
}
}
```

0 comments on commit 293cd1b

Please sign in to comment.