Class GraphQLQueryResponse<T>

java.lang.Object
com.atlassian.confluence.rest.client.graphql.GraphQLQueryResponse<T>
Direct Known Subclasses:
GraphQLRemoteChildContentServiceImpl.GraphQLQueryChildContentResponse, GraphQLRemoteContentLabelServiceImpl.GraphQLQueryLabelsResponse, GraphQLRemoteContentServiceImpl.GraphQLQueryContentResponse, GraphQLRemoteWebViewImpl.GraphQLWebItemsResponse, GraphQLRemoteWebViewImpl.GraphQLWebPanelsResponse, GraphQLRemoteWebViewImpl.GraphQLWebSectionsResponse

@Internal public class GraphQLQueryResponse<T> extends Object
The JSON response object for a graphql API.
Since:
9.0
  • Constructor Details

    • GraphQLQueryResponse

      public GraphQLQueryResponse()
  • Method Details

    • getData

      public T getData()
      Get the response data.
    • getErrors

      public List<Map<String,Object>> getErrors()
      Get any errors that happened while executing the query.
    • throwFirstErrorIfExists

      public void throwFirstErrorIfExists()
      Throw an exception for the first error returned by this response.