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!
Hi Spring GraphQL Team,
We're migrating from Netflix DGS to Spring GraphQL and have questions about
DataLoader.@SchemaMappingArgument Resolution Validation: When using a DataLoader within a@SchemaMappingmethod, how can we ensure mismatches between the DataLoader name (registered viaBatchLoaderRegistry.forName()) and the method's parameter name intended for keys are caught at compile or startup time, rather than runtime?@DgsDataLoaderannotation, for easier management and auto-registration?Any guidance on these points for a smoother migration would be appreciated.
Thanks!