Interface GraphQlArgumentBinder.NameResolver

Enclosing class:
GraphQlArgumentBinder

public static interface GraphQlArgumentBinder.NameResolver
Contract to customize the mapping of GraphQL argument names to Object properties. This can be useful for dealing with naming conventions like the use of "-" that cannot be used in Java property names.
Since:
2.0.0
Author:
Brian Clozel, Rossen Stoyanchev
  • Method Details

    • resolveName

      String resolveName(String name)
      Resolve the given GraphQL argument name to an Object property name.
      Parameters:
      name - the argument name
      Returns:
      the resolved name to use
    • andThen

      Append another resolver to be invoked after the current one.
      Parameters:
      resolver - the resolver to invoked
      Returns:
      a new composite resolver