Netflix / dgs-framework

GraphQL for Java with Spring Boot made easy.
https://netflix.github.io/dgs
Apache License 2.0
3.03k stars 286 forks source link

Allow connection directive to be applied to Unions and Interfaces #1798

Closed kilink closed 5 months ago

kilink commented 5 months ago

DgsPaginationTypeDefinitionRegistry generated a connection directive which could only be applied to Object types; update it to allow Union and Interfaces as well.

There were tests for this scenario but they didn't catch the problem because they never built a GraphQLSchema. To avoid such issues, switch all of the tests to fully build a GraphQLSchema.

Fixes #1317.