Class ResponseExtensionsKt
-
- All Implemented Interfaces:
public final class ResponseExtensionsKt
-
-
Method Summary
Modifier and Type Method Description final static GraphQLResponse<?>toGraphQLResponse(ExecutionResult $self)Convert a graphql-java result to the common serializable type GraphQLResponse final static GraphQLErrortoGraphQLError(Throwable $self)Turn a thrown exception into a graphql-java GraphQLError that we can return in the response final static GraphQLServerErrortoGraphQLKotlinType(GraphQLError $self)Convert the graphql-java type to the common serializable type GraphQLServerError -
-
Method Detail
-
toGraphQLResponse
final static GraphQLResponse<?> toGraphQLResponse(ExecutionResult $self)
Convert a graphql-java result to the common serializable type GraphQLResponse
-
toGraphQLError
final static GraphQLError toGraphQLError(Throwable $self)
Turn a thrown exception into a graphql-java GraphQLError that we can return in the response
-
toGraphQLKotlinType
final static GraphQLServerError toGraphQLKotlinType(GraphQLError $self)
Convert the graphql-java type to the common serializable type GraphQLServerError
-
-
-
-