From 6344cee008dcf2521e088150c08c18eb538f3a10 Mon Sep 17 00:00:00 2001 From: Emily Dobervich Date: Wed, 10 Jul 2024 18:46:38 -0500 Subject: [PATCH] GraphQLResponse.getRequestDetails should return nullable --- .../kotlin/com/netflix/graphql/dgs/client/GraphQLResponse.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }