Skip to content

Commit 608e4dd

Browse files
Marzarstoyanchev
authored andcommitted
Fixed client example with toEntity on field
ResponseField does not contain toEntity but ClientResponseField does and is returned by response#field. See gh-573
1 parent 3bee3e8 commit 608e4dd

File tree

1 file changed

+2
-2
lines changed
  • spring-graphql-docs/src/docs/asciidoc/includes

1 file changed

+2
-2
lines changed

spring-graphql-docs/src/docs/asciidoc/includes/client.adoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ For example:
282282
// Request failure... <1>
283283
}
284284
285-
ResponseField field = response.field("project");
285+
ClientResponseField field = response.field("project");
286286
if (!field.hasValue()) {
287287
if (field.getError() != null) {
288288
// Field failure... <2>
@@ -400,7 +400,7 @@ response directly:
400400
// Request failure...
401401
}
402402
403-
ResponseField field = response.field("project");
403+
ClientResponseField field = response.field("project");
404404
if (!field.hasValue()) {
405405
if (field.getError() != null) {
406406
// Field failure...

0 commit comments

Comments
 (0)