Description
Hi there, let me start by saying thank you for providing spring-graphql in the first place, and especially for delving into federation support as of recently. In the company I work for, we have recently adapted spring-graphql and the biggest missing piece was exactly that, no out of the box federation support that we had to implement on our own.
During the process, we came to discover that __referenceResolver queries can be fairly pricey if left to deal with singular entities. This is something that apollo team seems to warn about as can be seen in the note of the paragraph here https://www.apollographql.com/docs/federation/entities/#2-define-a-reference-resolver
ⓘ NOTE
A particular reference resolver might be called many times to resolve a single query. It's crucial that reference resolvers account for "N+1" issues (typically via data loaders). For details, see Handling the N+1 problem.
For us, due to custom implementation, we have easily adapted to the advice.
I am curious to know your thoughts on the topic of mixing batch mapping with entities fetching and if there is a plan to support this in spring-graphql in the near future?