https://kotlinlang.org logo
#graphql-kotlin
Title
# graphql-kotlin
h

Henrik Friedrichsen

09/29/2023, 12:15 PM
Hey there! Congrats on
graphql-kotlin
v7! I'm looking into upgrading and noticed the interface for federated type resolvers changed. Previously it was possible to process multiple
representation
objects in one call, now it seems to be one per call. This makes DB querying for us less efficient, as before we were able to batch load based on the list of IDs we have extracted from
representations
. Is there still a way to do it like this?
d

Dariusz Kuc

09/29/2023, 2:08 PM
@Samuel Vazquez
I'm guessing you would need to add data loader there but I'll defer to Sam
h

Henrik Friedrichsen

10/05/2023, 11:52 AM
Thanks, I'm guessing this requires manual wiring between the data loader and federated types? @Samuel Vazquez Are there any other approaches or are we missing something?