Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions modules/ROOT/pages/queries-aggregations/sorting.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type Movie {
}
----

The following sorting input type and query should be generated:
The following sorting input type and query are generated:

[source, graphql, indent=0]
----
Expand Down Expand Up @@ -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]
----
Expand All @@ -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]
----
Expand All @@ -85,3 +85,8 @@ query {
}
}
----

[CAUTION]
====
You cannot sort query results based on relationship properties.
====
Loading