Skip to content

Commit 293cd1b

Browse files
authored
Added Example of all features of queries (#999)
Source: #421 (comment)
1 parent d3c6f1b commit 293cd1b

1 file changed

Lines changed: 53 additions & 0 deletions

File tree

doc/queries/README.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,56 @@ If we paste the above query in GraphiQL we will get the following result :
8080
}
8181
}
8282
```
83+
84+
## Example of all features
85+
```
86+
{
87+
nodeQuery(filter: {
88+
conjunction: AND
89+
conditions: [{
90+
field: "nid"
91+
value: ["1", "10"]
92+
operator: BETWEEN
93+
}]
94+
groups: [{
95+
conjunction: OR
96+
conditions: [{
97+
field: "title"
98+
value: ["graphql filtering rocks"]
99+
}, {
100+
field: "title"
101+
value: ["graphql is awesome"]
102+
operator: LIKE
103+
}, {
104+
field: "uid"
105+
value: ["1"]
106+
}],
107+
groups: [{
108+
conjunction: AND
109+
conditions: [{
110+
field: "field_tags.target_id"
111+
value: ["1"]
112+
}]
113+
}]
114+
}]
115+
}, sort: [{
116+
field: "nid"
117+
direction: ASC
118+
}, {
119+
field: "uid"
120+
direction: DESC
121+
}]) {
122+
entities {
123+
entityUuid
124+
entityBundle
125+
entityPublished
126+
entityType
127+
entityChanged
128+
entityId
129+
entityCreated
130+
entityLabel
131+
}
132+
}
133+
}
134+
```
135+

0 commit comments

Comments
 (0)