graphql-php/examples/01-blog/Blog/AppContext.php
2016-11-06 21:33:13 +07:00

31 lines
456 B
PHP

<?php
namespace GraphQL\Examples\Blog;
use GraphQL\Examples\Blog\Data\DataSource;
use GraphQL\Examples\Blog\Data\User;
use GraphQL\Utils;
/**
* Class AppContext
* Instance available in all GraphQL resolvers as 3rd argument
*
* @package GraphQL\Examples\Blog
*/
class AppContext
{
/**
* @var string
*/
public $rootUrl;
/**
* @var User
*/
public $viewer;
/**
* @var \mixed
*/
public $request;
}