Skip to content

Commit 86aaa00

Browse files
authored
Merge pull request graphql-java#2857 from graphql-java/fix-selection-set-typo
Fix typo in field selection doco example
2 parents 1db980e + b948a67 commit 86aaa00

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/test/groovy/readme/FieldSelectionExamples.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public Object get(DataFetchingEnvironment env) {
1717
String userId = env.getArgument("userId");
1818

1919
DataFetchingFieldSelectionSet selectionSet = env.getSelectionSet();
20-
if (selectionSet.contains("user/*")) {
20+
if (selectionSet.contains("friends/*")) {
2121
return getUserAndTheirFriends(userId);
2222
} else {
2323
return getUser(userId);

0 commit comments

Comments
 (0)