Skip to content

GraphQlRepository with reactive repository and pagination not working #1609

Closed
@chrisbuettgen

Description

@chrisbuettgen

Hi there,
tried to get my feet wet with Spring for GraphQL and wanted to try out @GraphQlRepository together with an R2DBC repo, Pagination and "~Connection" types as in the documentation.

Strange thing is the query execution always ends with an Exception:

java.lang.UnsupportedOperationException: Limit not supported
	at org.springframework.data.repository.query.FluentQuery$ReactiveFluentQuery.limit(FluentQuery.java:227) ~[spring-data-commons-3.1.3.jar:3.1.3]
	at org.springframework.graphql.data.query.QueryByExampleDataFetcher$ReactiveScrollableEntityFetcher.lambda$get$0(QueryByExampleDataFetcher.java:950) ~[spring-graphql-1.2.2.jar:1.2.2]
[...]

Looking at the source code I cannot find an implementation of FluentQuery.limit(int limit) which does not throw an UnsupportedOperationException.

Am I missing something?

Find the attached source code with a Unit test to illustrate the problem. Running the application and using Graphiql should also lead to the error.
graphql-kotlin.zip

Maybe this issue is remotely related to #1605

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions