Skip to content

Commit e687ab1

Browse files
committed
Make example code bit more sensible
1 parent 0d79297 commit e687ab1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ class MyClass {
4444
this.graphQLWebClient = graphQLWebClient;
4545
}
4646
47-
void executeSomeQuery() {
47+
String helloWorld() {
4848
GraphQLRequest request = GraphQLRequest.builder().query("query { hello }").build();
4949
GraphQLResponse response = graphQLWebClient.post(request).block();
50-
String value = response.get("hello", String.class);
50+
return response.get("hello", String.class);
5151
}
5252
}
5353
```

0 commit comments

Comments
 (0)