'Query', 'fields' => [ 'sitekey' => [ 'type' => Type::string(), 'resolve' => fn ($rootValue, $args) => $sitekey, ], '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"]), ] ], ]);