Skip to content

Commit

Permalink
Fixed an issue where source field name and field name are equal in th…
Browse files Browse the repository at this point in the history
…e GraphQL schema

(cherry picked from commit 27f4489)
  • Loading branch information
mskacelik authored and gsmet committed Apr 9, 2024
1 parent 1b2d338 commit c1ff69b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public void testSourcePost() {
" title\n" +
" published\n" +
" buyLink\n" +
" authors {\n" +
" asyncAuthors {\n" +
" name\n" +
" bornName\n" +
" }\n" +
Expand Down Expand Up @@ -87,7 +87,7 @@ public CompletionStage<String> getBuyLink(@Source Book book) {
return CompletableFuture.supplyAsync(() -> String.format(AMAZON_SEARCH_FORMAT, title));
}

public CompletionStage<List<List<Author>>> getAuthors(@Source List<Book> books) {
public CompletionStage<List<List<Author>>> getAsyncAuthors(@Source List<Book> books) {
List<List<Author>> authorsOfAllBooks = new ArrayList<>();
for (Book book : books) {
List<Author> authors = new ArrayList<>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public void testSourcePost() {
" title\n" +
" published\n" +
" buyLink\n" +
" authors {\n" +
" asyncAuthors {\n" +
" name\n" +
" bornName\n" +
" }\n" +
Expand Down Expand Up @@ -81,7 +81,7 @@ public Uni<String> getBuyLink(@Source Book book) {
return Uni.createFrom().item(() -> String.format(AMAZON_SEARCH_FORMAT, title));
}

public Uni<List<List<Author>>> getAuthors(@Source List<Book> books) {
public Uni<List<List<Author>>> getAsyncAuthors(@Source List<Book> books) {
List<List<Author>> authorsOfAllBooks = new ArrayList<>();
for (Book book : books) {
List<Author> authors = new ArrayList<>();
Expand Down

0 comments on commit c1ff69b

Please sign in to comment.