@Retention(value=RUNTIME) @Target(value=PARAMETER) public @interface NestedParameter
@GraphQlClientApi
interface TeamsApi {
Team team(String teamName, @NestedParameter("members") int limit);
}
Generates a request:
query team($teamName: String, $limit: Int!) {
team(teamName: $teamName) {
headQuarter
members(limit: $limit) {
name
}
}
}
To nest a parameter deeper in the request, provide the path of the fields delimited with a period,
e.g. teams.members. Note that multiple parameters can be bound to the same path.public abstract String value
Copyright © 2018–2021. All rights reserved.