From 9fc6ee9827d10aef936110e26b87c170a952addc Mon Sep 17 00:00:00 2001 From: lidiazuin Date: Wed, 6 Dec 2023 11:01:10 +0100 Subject: [PATCH 1/2] Fixing examples and incorrect information --- modules/ROOT/pages/queries-aggregations/filtering.adoc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/ROOT/pages/queries-aggregations/filtering.adoc b/modules/ROOT/pages/queries-aggregations/filtering.adoc index 6c160678..47fe1799 100644 --- a/modules/ROOT/pages/queries-aggregations/filtering.adoc +++ b/modules/ROOT/pages/queries-aggregations/filtering.adoc @@ -7,14 +7,15 @@ When querying for data, a number of operators are available for different types == Equality operators -All types can be tested for either equality (`_eq`) or non-equality (`_ne`). +All types can be tested for either equality (`_eq`). +For non-equality (`_ne`), you *must* use the xref:/queries-aggregations/filtering.adoc#_combining_operators[`NOT`] logical operator. For example: .Filtering all Users named John [source, graphql, indent=0] ---- query { - users(where: {name: { _eq: "John" }}) + users(where: {name: "John" }) id name } @@ -40,7 +41,7 @@ Here is an example of how to use them: [source, graphql, indent=0] ---- query { - users(where: {age: { _lt: 50 }}) { + users(where: {age_LT: 50 }) { id name age From d11ba82713e64ebb49d5376d4a7a4e501b5e8f1f Mon Sep 17 00:00:00 2001 From: Lidia Zuin <102308961+lidiazuin@users.noreply.github.com> Date: Wed, 6 Dec 2023 11:29:46 +0100 Subject: [PATCH 2/2] Update modules/ROOT/pages/queries-aggregations/filtering.adoc Co-authored-by: angrykoala --- modules/ROOT/pages/queries-aggregations/filtering.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ROOT/pages/queries-aggregations/filtering.adoc b/modules/ROOT/pages/queries-aggregations/filtering.adoc index 47fe1799..9e616560 100644 --- a/modules/ROOT/pages/queries-aggregations/filtering.adoc +++ b/modules/ROOT/pages/queries-aggregations/filtering.adoc @@ -7,8 +7,8 @@ When querying for data, a number of operators are available for different types == Equality operators -All types can be tested for either equality (`_eq`). -For non-equality (`_ne`), you *must* use the xref:/queries-aggregations/filtering.adoc#_combining_operators[`NOT`] logical operator. +All types can be tested for either equality. +For non-equality, you *must* use the xref:/queries-aggregations/filtering.adoc#_combining_operators[`NOT`] logical operator. For example: .Filtering all Users named John