comments are non-null
This commit is contained in:
parent
689b2b13af
commit
78dbcb8626
1 changed files with 1 additions and 1 deletions
|
@ -95,7 +95,7 @@ class Comment
|
||||||
return $this->owner;
|
return $this->owner;
|
||||||
}
|
}
|
||||||
|
|
||||||
#[Field(extends: "Post", name: "comments", type: "[Comment]")]
|
#[Field(extends: "Post", name: "comments", type: "[Comment!]!")]
|
||||||
public function get_comments(Image $post): array
|
public function get_comments(Image $post): array
|
||||||
{
|
{
|
||||||
return CommentList::get_comments($post->id);
|
return CommentList::get_comments($post->id);
|
||||||
|
|
Reference in a new issue