spring-projects / spring-graphql

Spring Integration for GraphQL
https://spring.io/projects/spring-graphql
Apache License 2.0
1.5k stars 297 forks source link

Schema mapping should inspect fields that have a matching class property #934

Closed rstoyanchev closed 3 months ago

rstoyanchev commented 3 months ago

Currently schema mapping does not inspect fields that have a matching class property, and generally there is nothing further to do if the field is a scalar or enum, which is the most likely case. However, if the field is a type that contains other fields, then we have to go further. It is an unlikely scenario that implies eager fetching, but from the perspective of schema inspection we need to go as far as we can and depending on what we find.