File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/Infrastructure/Api/Http/Controller Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 44
55namespace Jerowork \ExampleApplicationGraphqlAttributeSchema \Infrastructure \Api \Http \Controller ;
66
7+ use GraphQL \Error \DebugFlag ;
78use GraphQL \Executor \ExecutionResult ;
89use GraphQL \Server \ServerConfig ;
910use GraphQL \Server \StandardServer ;
@@ -49,10 +50,10 @@ public function __invoke(Request $request): Response
4950
5051 // 4. Handle batch requests
5152 if (is_array ($ result )) {
52- return new JsonResponse (array_map (fn ($ res ) => $ res ->toArray (), $ result ));
53+ return new JsonResponse (array_map (fn ($ res ) => $ res ->toArray (DebugFlag:: INCLUDE_DEBUG_MESSAGE | DebugFlag:: INCLUDE_TRACE ), $ result ));
5354 }
5455
5556 // 5. Return response
56- return new JsonResponse ($ result ->toArray ());
57+ return new JsonResponse ($ result ->toArray (DebugFlag:: INCLUDE_DEBUG_MESSAGE | DebugFlag:: INCLUDE_TRACE ));
5758 }
5859}
You can’t perform that action at this time.
0 commit comments