Document behavior when "first" and "last" present

Closes gh-1055
This commit is contained in:
rstoyanchev
2024-09-16 12:08:37 +01:00
parent 71b709253d
commit ba1dcf0baf

View File

@@ -596,6 +596,10 @@ request the "first" N items "after" a given cursor. Similarly, the `last` and `b
arguments for backward pagination arguments allow requesting the "last" N items "before"
a given cursor.
NOTE: The spec discourages including both `first` and `last` and also states the outcome
for pagination becomes unclear. In Spring for GraphQL if `first` or `after` are present,
then `last` and `before` are ignored.
To have connection types generated, configure `ConnectionTypeDefinitionConfigurer` as follows:
[source,java,indent=0,subs="verbatim,quotes"]