GraphQL\Examples\Blog\Type\StoryType::author PHP Method

author() public method

public author ( Story $story )
$story GraphQL\Examples\Blog\Data\Story
    public function author(Story $story)
    {
        return DataSource::findUser($story->authorId);
    }