You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+24-8Lines changed: 24 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -104,8 +104,9 @@ The following filter operators are exposed by default:
104
104
## Examples
105
105
106
106
<details>
107
+
107
108
<summary>Null values</summary>
108
-
<br>
109
+
109
110
NOTE: The syntax for filtering null values will be standardized before the v1.0.0 release. There are currently two options:
110
111
111
112
```graphql
@@ -127,11 +128,13 @@ query {
127
128
}
128
129
}
129
130
```
131
+
130
132
</details>
131
133
132
134
<details>
135
+
133
136
<summary>Non-null values</summary>
134
-
<br>
137
+
135
138
NOTE: The syntax for filtering null values will standardized before the v1.0.0 release. There are currently two options:
136
139
137
140
```graphql
@@ -153,11 +156,13 @@ query {
153
156
}
154
157
}
155
158
```
159
+
156
160
</details>
157
161
158
162
<details>
163
+
159
164
<summary>Comparison operator with scalar input</summary>
160
-
<br>
165
+
161
166
```graphql
162
167
query {
163
168
allPosts(filter: {
@@ -167,11 +172,13 @@ query {
167
172
}
168
173
}
169
174
```
175
+
170
176
</details>
171
177
172
178
<details>
179
+
173
180
<summary>Comparison operator with array input</summary>
174
-
<br>
181
+
175
182
```graphql
176
183
query {
177
184
allPosts(filter: {
@@ -181,11 +188,13 @@ query {
181
188
}
182
189
}
183
190
```
191
+
184
192
</details>
185
193
186
194
<details>
195
+
187
196
<summary>Multiple comparison operators</summary>
188
-
<br>
197
+
189
198
Note: Objects with multiple keys are interpreted with an implicit `AND` between the conditions.
190
199
191
200
```graphql
@@ -198,11 +207,13 @@ query {
198
207
}
199
208
}
200
209
```
210
+
201
211
</details>
202
212
203
213
<details>
214
+
204
215
<summary>Logical operator</summary>
205
-
<br>
216
+
206
217
```graphql
207
218
query {
208
219
allPosts(filter: {
@@ -215,11 +226,13 @@ query {
215
226
}
216
227
}
217
228
```
229
+
218
230
</details>
219
231
220
232
<details>
233
+
221
234
<summary>Nested logic</summary>
222
-
<br>
235
+
223
236
```graphql
224
237
query {
225
238
allPosts(filter: {
@@ -234,11 +247,13 @@ query {
234
247
}
235
248
}
236
249
```
250
+
237
251
</details>
238
252
239
253
<details>
254
+
240
255
<summary>Related tables</summary>
241
-
<br>
256
+
242
257
```graphql
243
258
query {
244
259
allPeople(filter: {
@@ -258,6 +273,7 @@ query {
258
273
}
259
274
}
260
275
```
276
+
261
277
</details>
262
278
263
279
For additional examples, see the [tests](https://github.com/mattbretl/postgraphile-plugin-connection-filter/blob/master/__tests__/fixtures/queries/connections-filter.graphql).
0 commit comments