mirror of
https://github.com/retailcrm/graphql-php.git
synced 2024-11-29 00:25:17 +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;
|
|
}
|