Skip to content

Commit 8db6e1a

Browse files
authored
Fix filter usage documentation
closes #48
1 parent 4dee787 commit 8db6e1a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ Here is how you can use the queries and mutations generated for your data, using
340340
<pre>
341341
// filter the result using any of the entity fields
342342
{
343-
allPosts(views: 254) {
343+
allPosts({ filter: { views: 254 }}) {
344344
title
345345
views
346346
}
@@ -365,7 +365,7 @@ Here is how you can use the queries and mutations generated for your data, using
365365
// number fields get range filters
366366
// -lt, _lte, -gt, and _gte
367367
{
368-
allPosts(views_gte: 200) {
368+
allPosts({ filter: { views_gte: 200 } }) {
369369
title
370370
views
371371
}

0 commit comments

Comments
 (0)