'Query', 'fields' => [ 'sitekey' => [ 'type' => Type::string(), 'resolve' => fn ($rootValue, $args) => $sitekey, ], 'mailAddress' => [ 'type' => Type::string(), "args" => [ "hCaptchaResponse" => Type::string() ], 'resolve' => fn ($rootValue, $args) => mailAddress($args["hCaptchaResponse"]), ], 'skills' => [ 'type' => Type::listOf(Type::string()), 'resolve' => fn ($rootValue, $args) => getSkills(), ], 'blogPost' => [ "type" => $blogPostFields, 'args' => [ 'id' => Type::nonNull(Type::string()), ], 'resolve' => fn ($rootValue, $args) => blogPost($args["id"], $rootValue["db"]), ], 'blogPosts' => [ "type" => Type::listOf($blogPostFields), "args" => [ "count" => Type::nonNull(Type::int()), "contentLength" => [ "type" => Type::int(), "defaultValue" => null ] ], 'resolve' => fn ($rootValue, $args) => blogPosts($args["count"], $args["contentLength"], $rootValue["db"]), ], 'comments' => [ "type" => Type::listOf($commentField), "args" => [ "article" => Type::nonNull(Type::string()), ], 'resolve' => fn ($rootValue, $args) => comments($args["article"], $rootValue["db"]), ], 'ebayKleinanzeigen' => [ "type" => $ebayKleinanzeigenFields, "args" => [ "imageCount" => [ "type" => Type::int(), "defaultValue" => 0 ] ], 'resolve' => fn ($rootValue, $args) => ebayKleinanzeigen($args["imageCount"]), ] ], ]);