Skip to content

Commit

Permalink
Merge pull request #2857 from graphql-java/fix-selection-set-typo
Browse files Browse the repository at this point in the history
Fix typo in field selection doco example
  • Loading branch information
dondonz committed Jun 14, 2022
2 parents 1db980e + b948a67 commit 86aaa00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/groovy/readme/FieldSelectionExamples.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public Object get(DataFetchingEnvironment env) {
String userId = env.getArgument("userId");

DataFetchingFieldSelectionSet selectionSet = env.getSelectionSet();
if (selectionSet.contains("user/*")) {
if (selectionSet.contains("friends/*")) {
return getUserAndTheirFriends(userId);
} else {
return getUser(userId);
Expand Down

0 comments on commit 86aaa00

Please sign in to comment.