From d4d72096489013acbe911975ff25e98355a5c338 Mon Sep 17 00:00:00 2001 From: Richard Sill Date: Tue, 17 Sep 2024 15:26:54 +0200 Subject: [PATCH 1/2] some updates for the sorting page --- modules/ROOT/pages/queries-aggregations/sorting.adoc | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/modules/ROOT/pages/queries-aggregations/sorting.adoc b/modules/ROOT/pages/queries-aggregations/sorting.adoc index 833b45e7..7cd10579 100644 --- a/modules/ROOT/pages/queries-aggregations/sorting.adoc +++ b/modules/ROOT/pages/queries-aggregations/sorting.adoc @@ -16,7 +16,7 @@ type Movie { } ---- -The following sorting input type and query should be generated: +The following sorting input type and query is generated: [source, graphql, indent=0] ---- @@ -47,7 +47,7 @@ type Query { } ---- -The resulting query should then allow fetching all movies sorted by runtime in ascending order: +The following query fetches all movies sorted by runtime in ascending order: [source, graphql, indent=0] ---- @@ -65,7 +65,7 @@ query { } ---- -Additionally, in case there was a relationship between the `Movie` and an `Actor` type, sorting can also be applied when fetching the `actors` field: +If there is a relationship between the `Movie` and an `Actor` type, you can also sort when fetching the `actors` field: [source, graphql, indent=0] ---- @@ -85,3 +85,8 @@ query { } } ---- + +[CAUTION] +==== +You cannot sort query results based on relationship properties. +==== \ No newline at end of file From 34d604e78f45b6d2c12d2ea2e73e390dad52aaad Mon Sep 17 00:00:00 2001 From: Richard Sill <156673635+rsill-neo4j@users.noreply.github.com> Date: Wed, 18 Sep 2024 08:00:58 +0200 Subject: [PATCH 2/2] Apply suggestions from code review --- modules/ROOT/pages/queries-aggregations/sorting.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ROOT/pages/queries-aggregations/sorting.adoc b/modules/ROOT/pages/queries-aggregations/sorting.adoc index 7cd10579..9ddbedd5 100644 --- a/modules/ROOT/pages/queries-aggregations/sorting.adoc +++ b/modules/ROOT/pages/queries-aggregations/sorting.adoc @@ -16,7 +16,7 @@ type Movie { } ---- -The following sorting input type and query is generated: +The following sorting input type and query are generated: [source, graphql, indent=0] ----