Skip to content

Commit ac0fa9c

Browse files
authored
Merge pull request #173 from neo4j/updates-for-sorting-page
Updates for the sorting page
2 parents e9f3be9 + 34d604e commit ac0fa9c

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

modules/ROOT/pages/queries-aggregations/sorting.adoc

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ type Movie {
1616
}
1717
----
1818

19-
The following sorting input type and query should be generated:
19+
The following sorting input type and query are generated:
2020

2121
[source, graphql, indent=0]
2222
----
@@ -47,7 +47,7 @@ type Query {
4747
}
4848
----
4949

50-
The resulting query should then allow fetching all movies sorted by runtime in ascending order:
50+
The following query fetches all movies sorted by runtime in ascending order:
5151

5252
[source, graphql, indent=0]
5353
----
@@ -65,7 +65,7 @@ query {
6565
}
6666
----
6767

68-
Additionally, in case there was a relationship between the `Movie` and an `Actor` type, sorting can also be applied when fetching the `actors` field:
68+
If there is a relationship between the `Movie` and an `Actor` type, you can also sort when fetching the `actors` field:
6969

7070
[source, graphql, indent=0]
7171
----
@@ -85,3 +85,8 @@ query {
8585
}
8686
}
8787
----
88+
89+
[CAUTION]
90+
====
91+
You cannot sort query results based on relationship properties.
92+
====

0 commit comments

Comments
 (0)