We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b218dc commit 07b7cecCopy full SHA for 07b7cec
tests/ObjectTypesUseCaseTest.php
@@ -44,12 +44,16 @@ public function post_type_was_created(): void
44
*/
45
public function type_definitions_match(): void
46
{
47
+ $userInput = null;
48
+ $postInput = null;
49
+
50
$postInput = new InputObjectType([
51
'name' => 'PostInput',
52
'fields' => [
53
'id' => Type::nonNull(Type::int()),
54
'title' => Type::nonNull(Type::string()),
55
'content' => type::nonNull(Type::string()),
56
+ 'author' => Type::nonNull(fn () => $userInput),
57
],
58
]);
59
tests/TestClasses/Post.php
@@ -11,4 +11,6 @@ class Post
11
public string $title;
12
13
public string $content;
14
15
+ public User $author;
16
}
0 commit comments