Skip to content

Looking for advice on DGS DataLoader migration #1233

@cw-juyeonyu

Description

@cw-juyeonyu

Hi Spring GraphQL Team,

We're migrating from Netflix DGS to Spring GraphQL and have questions about DataLoader.

  • @SchemaMapping Argument Resolution Validation: When using a DataLoader within a @SchemaMapping method, how can we ensure mismatches between the DataLoader name (registered via BatchLoaderRegistry.forName()) and the method's parameter name intended for keys are caught at compile or startup time, rather than runtime?
  • Bean-based DataLoaders: Is there a recommended way to register DataLoaders as Spring beans, similar to DGS's @DgsDataLoader annotation, for easier management and auto-registration?

Any guidance on these points for a smoother migration would be appreciated.
Thanks!

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions