You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've discussed details of with @bclozel, and he plans to prepare a PR, but I'll add a summary here. Most changes should be in GraphQlAutoConfiguration to my understanding, sketched out as follows:
Create ConnectionTypeDefinitionConfigurer and set it on GraphQlSource.SchemaResourceBuilder to enable schema type generation of boilerplate types.
Declare a CursorStrategy<ScrollPosition> bean, created from ScrollPositionCursorStrategy and JsonKeysetCursorStrategy, and wrapped via CursorStrategy.withEncoder for Base64 encoding, and use it as follows:
Set the respective property on AnnotatedControllerConfigurer.
Create ConnectionFieldTypeVisitor with WindowConnectionAdapter and SliceConnectionAdapter, and add it to GraphQlSource.Builder.
The text was updated successfully, but these errors were encountered:
This commit auto-configures the new pagination and sorting support for
Spring for GraphQL, if Spring Data is available.
The `GraphQlAutoConfiguration` now contributes a `CursorStrategy` bean
that is used to set up the pagination and sorting data fetching
infrastructure.
This commit also configures by default a
`ConnectionTypeDefinitionConfigurer` that automatically detects
`*Connection` types and contributes the relevant schema definitions
according to the Relay spec.
Closesspring-projectsgh-34630
Uh oh!
There was an error while loading. Please reload this page.
This is a follow-up to spring-projects/spring-graphql#619 and spring-projects/spring-graphql#620, adding support for pagination and sorting.
I've discussed details of with @bclozel, and he plans to prepare a PR, but I'll add a summary here. Most changes should be in
GraphQlAutoConfiguration
to my understanding, sketched out as follows:ConnectionTypeDefinitionConfigurer
and set it onGraphQlSource.SchemaResourceBuilder
to enable schema type generation of boilerplate types.CursorStrategy<ScrollPosition>
bean, created fromScrollPositionCursorStrategy
andJsonKeysetCursorStrategy
, and wrapped viaCursorStrategy.withEncoder
for Base64 encoding, and use it as follows:AnnotatedControllerConfigurer
.ConnectionFieldTypeVisitor
withWindowConnectionAdapter
andSliceConnectionAdapter
, and add it toGraphQlSource.Builder
.The text was updated successfully, but these errors were encountered: