-
Notifications
You must be signed in to change notification settings - Fork 96
Closed
Description
Recently, in the latest version, it has been added support to pass string arguments in the DataFetcher constructor (#44).
Thanks to @bmsantos for that.
However, this only supports such args when the DataFetcher is declared in a field and not for method declarations.
E.g. the following is not supported:
@GraphQLField
@GraphQLDataFetcher(value = CustomDataFetcher.class, args = { "Argument" })
private List<AnObject> getTheObjects(@GraphQLName("param") String aParameter);
This can be particularly limiting when you need parameters, as in the example.
It does not seem very difficult to extend the support for methods, so I will be trying to implement this capability probably next week. But would like to see if anyone has any advice on it.
Thanks.
Metadata
Metadata
Assignees
Labels
No labels