Skip to content

Commit a0354c1

Browse files
committed
README formatting
1 parent ed65dc3 commit a0354c1

File tree

1 file changed

+24
-8
lines changed

1 file changed

+24
-8
lines changed

README.md

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,9 @@ The following filter operators are exposed by default:
104104
## Examples
105105

106106
<details>
107+
107108
<summary>Null values</summary>
108-
<br>
109+
109110
NOTE: The syntax for filtering null values will be standardized before the v1.0.0 release. There are currently two options:
110111

111112
``` graphql
@@ -127,11 +128,13 @@ query {
127128
}
128129
}
129130
```
131+
130132
</details>
131133

132134
<details>
135+
133136
<summary>Non-null values</summary>
134-
<br>
137+
135138
NOTE: The syntax for filtering null values will standardized before the v1.0.0 release. There are currently two options:
136139

137140
``` graphql
@@ -153,11 +156,13 @@ query {
153156
}
154157
}
155158
```
159+
156160
</details>
157161

158162
<details>
163+
159164
<summary>Comparison operator with scalar input</summary>
160-
<br>
165+
161166
``` graphql
162167
query {
163168
allPosts(filter: {
@@ -167,11 +172,13 @@ query {
167172
}
168173
}
169174
```
175+
170176
</details>
171177

172178
<details>
179+
173180
<summary>Comparison operator with array input</summary>
174-
<br>
181+
175182
``` graphql
176183
query {
177184
allPosts(filter: {
@@ -181,11 +188,13 @@ query {
181188
}
182189
}
183190
```
191+
184192
</details>
185193

186194
<details>
195+
187196
<summary>Multiple comparison operators</summary>
188-
<br>
197+
189198
Note: Objects with multiple keys are interpreted with an implicit `AND` between the conditions.
190199

191200
``` graphql
@@ -198,11 +207,13 @@ query {
198207
}
199208
}
200209
```
210+
201211
</details>
202212

203213
<details>
214+
204215
<summary>Logical operator</summary>
205-
<br>
216+
206217
``` graphql
207218
query {
208219
allPosts(filter: {
@@ -215,11 +226,13 @@ query {
215226
}
216227
}
217228
```
229+
218230
</details>
219231

220232
<details>
233+
221234
<summary>Nested logic</summary>
222-
<br>
235+
223236
``` graphql
224237
query {
225238
allPosts(filter: {
@@ -234,11 +247,13 @@ query {
234247
}
235248
}
236249
```
250+
237251
</details>
238252

239253
<details>
254+
240255
<summary>Related tables</summary>
241-
<br>
256+
242257
``` graphql
243258
query {
244259
allPeople(filter: {
@@ -258,6 +273,7 @@ query {
258273
}
259274
}
260275
```
276+
261277
</details>
262278

263279
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

Comments
 (0)