Skip to content

Batching type resolutionΒ #1867

@hrkfdn

Description

@hrkfdn

With #1514 the interface for type resolvers has changed to pass a single representation instead of multiple representations. This was done to be more streamlined with other subgraph libraries which makes sense.

However, it comes with the disadvantage that type resolution can not be batched anymore. In our case, we would do a batch load from DynamoDB when receiving representations as that is more efficient than running a query per requested type. With the current interface this is not possible.

What would be the way to reproduce such a logic? I have asked on Slack and a data loader was suggested. From my understanding that does not mean the data loader will automatically be integrated with the type resolver, so I'm guessing some other gluing logic is needed.

Maybe some documentation or helpers in graphql-kotlin could be helpful to make the migration to v7 a little easier?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions