Package 

Class GraphQLResponse


  • 
    public class GraphQLResponse<T1, T2>
    
                        

    Represents the general format for GraphQL responses. Refer https://github.com/graphql/graphql-spec/blob/main/spec/Section%207%20--%20Response.md for the specification.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private T1 data
      private List<T2> errors
    • Method Summary

      Modifier and Type Method Description
      T1 getData() Returns the data for this GraphQL response.
      List<T2> getErrors() Returns the list of errors for this GraphQL response.
      boolean hasError() Returns if this GraphQL response has any errors.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • hasError

         boolean hasError()

        Returns if this GraphQL response has any errors.