Skip to content

Commit ba1dcf0

Browse files
committed
Document behavior when "first" and "last" present
Closes gh-1055
1 parent 71b7092 commit ba1dcf0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

spring-graphql-docs/modules/ROOT/pages/request-execution.adoc

+4
Original file line numberDiff line numberDiff line change
@@ -596,6 +596,10 @@ request the "first" N items "after" a given cursor. Similarly, the `last` and `b
596596
arguments for backward pagination arguments allow requesting the "last" N items "before"
597597
a given cursor.
598598

599+
NOTE: The spec discourages including both `first` and `last` and also states the outcome
600+
for pagination becomes unclear. In Spring for GraphQL if `first` or `after` are present,
601+
then `last` and `before` are ignored.
602+
599603
To have connection types generated, configure `ConnectionTypeDefinitionConfigurer` as follows:
600604

601605
[source,java,indent=0,subs="verbatim,quotes"]

0 commit comments

Comments
 (0)