mirror of
https://github.com/retailcrm/graphql-php.git
synced 2024-11-30 00:46:02 +03:00
29 lines
394 B
PHP
29 lines
394 B
PHP
<?php
|
|
namespace GraphQL\Examples\Blog;
|
|
|
|
use GraphQL\Examples\Blog\Data\User;
|
|
|
|
/**
|
|
* 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;
|
|
}
|