leangen / graphql-spqr

Build a GraphQL service in seconds
Apache License 2.0
1.09k stars 179 forks source link

Add LambdaMetafactory support for Method Invokers #501

Open shalearkane opened 1 week ago

shalearkane commented 1 week ago

This adds

However, this code fails for static parameter-less methods. In case of failure to create a LambdaInvoker, it falls back to creating a MethodInvoker. There is no performance hit as this happens during initialisation.

This change is inspired by GraphQL-Java's Improved Data Fetching implemented at LambdaFetchingSupport based on LambdaMetafactory.