Skip to content

Auto-registration of @GraphQlRepository doesn't work if the returned list is declared not null #661

Closed
@andreysubbotin

Description

@andreysubbotin

Example query:

"Query root"
type Query {
  petList: [Pet]!
}

Data Repository:

@GraphQlRepository
public interface PetRepository extends JpaRepository<Pet, Long>, QuerydslPredicateExecutor<QPet> {
}

AR: Spring GraphQL unable to handle petList query.
Perhaps, GraphQL type is not resolved correctly in org.springframework.graphql.data.query.AutoRegistrationRuntimeWiringConfigurer.AutoRegistrationWiringFactory#getOutputTypeName.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions