VariablesProvider

Java equivalent of Kotlin's VariablesProvider. Implementations dynamically compute values for GraphQL variables that are referenced from a resolver's required selection set fragment.

An implementation must be a nested static class on a resolver and must be annotated with viaduct.java.api.annotations.Variables declaring the variable names and types produced by provide.

The returned map must contain exactly the keys declared in the @Variables annotation.

Parameters

<A>

The arguments type for the field whose resolver references this provider's variables. Use Arguments.NoArguments when the field has no arguments.

Functions

Link copied to clipboard
Compute and return the variable values.