public abstract class AbstractGraphQlResponse extends Object implements GraphQlResponse
GraphQlResponse
that pre-implements the ability to
access a ResponseField
.Constructor and Description |
---|
AbstractGraphQlResponse() |
Modifier and Type | Method and Description |
---|---|
ResponseField |
field(String path)
Navigate to the given path under the "data" key of the response map where
the path is a dot-separated string with optional array indexes.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getData, getErrors, getExtensions, isValid, toMap
public ResponseField field(String path)
GraphQlResponse
Example paths:
"hero" "hero.name" "hero.friends" "hero.friends[2]" "hero.friends[2].name"
field
in interface GraphQlResponse
path
- relative to the "data" keyResponseField.hasValue()
to check if
the field actually exists and has a value.