$queryType ]); try { $serverConfig = [ 'schema' => $schema, 'rootValue' => [ 'db' =>$conn, ] ]; $server = new StandardServer($serverConfig); $server->handleRequest(); } catch (Throwable $error) { StandardServer::send500Error($error); }