PHP Class GraphQL\Examples\Blog\Type\StoryType

Inheritance: extends GraphQL\Type\Definition\ObjectType
Show file Open project: webonyx/graphql-php

Public Methods

Method Description
__construct ( )
affordances ( Story $story, $args, AppContext $context )
author ( Story $story )
comments ( Story $story, $args )
hasViewerLiked ( Story $story, $args, AppContext $context )
totalCommentCount ( Story $story )

Method Details

__construct() public method

public __construct ( )

affordances() public method

public affordances ( Story $story, $args, AppContext $context )
$story GraphQL\Examples\Blog\Data\Story
$context GraphQL\Examples\Blog\AppContext

author() public method

public author ( Story $story )
$story GraphQL\Examples\Blog\Data\Story

comments() public method

public comments ( Story $story, $args )
$story GraphQL\Examples\Blog\Data\Story

hasViewerLiked() public method

public hasViewerLiked ( Story $story, $args, AppContext $context )
$story GraphQL\Examples\Blog\Data\Story
$context GraphQL\Examples\Blog\AppContext

totalCommentCount() public method

public totalCommentCount ( Story $story )
$story GraphQL\Examples\Blog\Data\Story