Interface GraphQlTester.Response

All Superinterfaces:
GraphQlTester.Traversable
Enclosing interface:
GraphQlTester

public static interface GraphQlTester.Response extends GraphQlTester.Traversable
Declare options to check the data and errors of a GraphQL response.
  • Method Summary

    Modifier and Type
    Method
    Description
    Return a spec to filter out or inspect errors.
    org.springframework.graphql.GraphQlResponse
    Return the underlying GraphQlResponse for direct access.

    Methods inherited from interface org.springframework.graphql.test.tester.GraphQlTester.Traversable

    path, path
  • Method Details

    • errors

      Return a spec to filter out or inspect errors. This must be used before traversing to a GraphQlTester.Traversable.path(String) if some errors are expected and need to be filtered out.
      Returns:
      the error spec
    • returnResponse

      org.springframework.graphql.GraphQlResponse returnResponse()
      Return the underlying GraphQlResponse for direct access.
      Since:
      1.3.5