diff --git a/graphql-dgs-client/src/main/kotlin/com/netflix/graphql/dgs/client/GraphQLResponse.kt b/graphql-dgs-client/src/main/kotlin/com/netflix/graphql/dgs/client/GraphQLResponse.kt index 9f62004ef..a9a6731a3 100644 --- a/graphql-dgs-client/src/main/kotlin/com/netflix/graphql/dgs/client/GraphQLResponse.kt +++ b/graphql-dgs-client/src/main/kotlin/com/netflix/graphql/dgs/client/GraphQLResponse.kt @@ -128,7 +128,7 @@ data class GraphQLResponse( * Extracts RequestDetails from the response if available. * Returns null otherwise. */ - fun getRequestDetails(): RequestDetails { + fun getRequestDetails(): RequestDetails? { return extractValueAsObject("gatewayRequestDetails", RequestDetails::class.java) }