@Retention(value=RUNTIME) @Target(value=TYPE) public @interface Multiple
NestedParameter annotations.
E.g.
@GraphQlClientApi
interface FooAndBarApi {
FooAndBar fooAndBar(@NestedParameter("bar") String id);
}
@Multiple
static class FooAndBar {
Foo foo;
Bar bar;
}
Creates a query for the two fields foo and bar:
query fooAndBar($id: String!) {
foo {
name
}
bar(id: $id) {
name
}
}
Copyright © 2018–2021. All rights reserved.