public class GraphQlResponse
extends java.lang.Object
AEMHeadlessClient returns this class for the operations
AEMHeadlessClient.runQuery(String) and
AEMHeadlessClient.runPersistedQuery(PersistedQuery). Use
getData() to retrieve the
JsonNode of the response.| Modifier and Type | Class and Description |
|---|---|
static class |
GraphQlResponse.Error
Represents a GraphQL error as sent by server in JSON response.
|
| Modifier and Type | Method and Description |
|---|---|
@Nullable com.fasterxml.jackson.databind.JsonNode |
getData() |
@Nullable java.util.List<GraphQlResponse.Error> |
getErrors() |
boolean |
hasErrors() |
java.lang.String |
toString() |
public java.lang.String toString()
toString in class java.lang.Object@Nullable public @Nullable com.fasterxml.jackson.databind.JsonNode getData()
JsonNode or null
if no data was sent by server.public boolean hasErrors()
@Nullable public @Nullable java.util.List<GraphQlResponse.Error> getErrors()
null if no
errors element was present in response.Copyright © 2021 Adobe. All rights reserved.