mirror of
https://github.com/retailcrm/graphql-php.git
synced 2024-11-23 05:16:05 +03:00
31 lines
456 B
PHP
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;
|
|
}
|