From 1acc749bd93e4260c5a896256b794fa934217db1 Mon Sep 17 00:00:00 2001 From: pipinet Date: Sat, 16 Dec 2023 22:38:10 +0800 Subject: [PATCH] fix: ExecutionInput locale is null --- .../graphql/execution/ExecutionService.java | 34 ++++++++++--------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/server/implementation/src/main/java/io/smallrye/graphql/execution/ExecutionService.java b/server/implementation/src/main/java/io/smallrye/graphql/execution/ExecutionService.java index 9cf3cb8aa..850aa3a57 100644 --- a/server/implementation/src/main/java/io/smallrye/graphql/execution/ExecutionService.java +++ b/server/implementation/src/main/java/io/smallrye/graphql/execution/ExecutionService.java @@ -1,5 +1,23 @@ package io.smallrye.graphql.execution; +import static io.smallrye.graphql.SmallRyeGraphQLServerLogging.log; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Locale; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import java.util.concurrent.atomic.AtomicLong; + +import jakarta.json.JsonObject; + +import org.dataloader.BatchLoaderWithContext; +import org.dataloader.DataLoader; +import org.dataloader.DataLoaderFactory; +import org.dataloader.DataLoaderRegistry; + import graphql.ExecutionInput; import graphql.ExecutionInput.Builder; import graphql.ExecutionResult; @@ -30,22 +48,6 @@ import io.smallrye.graphql.spi.config.Config; import io.smallrye.graphql.spi.config.LogPayloadOption; import io.smallrye.mutiny.Uni; -import jakarta.json.JsonObject; -import org.dataloader.BatchLoaderWithContext; -import org.dataloader.DataLoader; -import org.dataloader.DataLoaderFactory; -import org.dataloader.DataLoaderRegistry; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Locale; -import java.util.Map; -import java.util.Objects; -import java.util.Optional; -import java.util.concurrent.atomic.AtomicLong; - -import static io.smallrye.graphql.SmallRyeGraphQLServerLogging.log; /** * Executing the GraphQL request