You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As the title suggests, I would like to put forward a feature request for having the @BatchMapping-annotation expose a maxBatchSize which will be set on the default DataLoaderOptions for that DataLoader. As MappingInfo is collected before registration I would carefully suggest that the batchloader boolean be changed to it's own separate object which would enclose additional properties for a batchloader like this.
And these changes would be necessary in the MappingInfo class, and the BatchOptions class has been omitted as that would be an implementation detail for the spring team to consider if at all implemented.
Secondary I would like to suggest the addition of ConfigurationProperties that could act as the "default" DataLoaderOptions and be injected into the BatchLoaderRegistry for convenience to be able to set properties like max batch size globally, perhaps under the key spring.graphql.dataloader.options
The text was updated successfully, but these errors were encountered:
Thanks for the suggestions. Exposing maxBatchSize on @BatchMapping sounds good to me, and so does the second suggestion for default DataLoaderOptions but I've created a separate issue #522 for that.
Hi, sorry if this has been requested before
As the title suggests, I would like to put forward a feature request for having the
@BatchMapping
-annotation expose a maxBatchSize which will be set on the defaultDataLoaderOptions
for that DataLoader. As MappingInfo is collected before registration I would carefully suggest that the batchloader boolean be changed to it's own separate object which would enclose additional properties for a batchloader like this.And these changes would be necessary in the
MappingInfo
class, and the BatchOptions class has been omitted as that would be an implementation detail for the spring team to consider if at all implemented.Secondary I would like to suggest the addition of ConfigurationProperties that could act as the "default"
DataLoaderOptions
and be injected into theBatchLoaderRegistry
for convenience to be able to set properties like max batch size globally, perhaps under the keyspring.graphql.dataloader.options
The text was updated successfully, but these errors were encountered: