PHP Class GraphQL\GraphQL

Exibir arquivo Open project: webonyx/graphql-php Class Usage Examples

Public Methods

Method Description
execute ( Schema $schema, $requestString, mixed $rootValue = null, $contextValue = null, $variableValues = null, string | null $operationName = null ) : GraphQL\Executor\Promise\Promise | array
executeAndReturnResult ( Schema $schema, $requestString, null $rootValue = null, $contextValue = null, null $variableValues = null, null $operationName = null ) : ExecutionResult | GraphQL\Executor\Promise\Promise
getInternalDirectives ( ) : array
setPromiseAdapter ( GraphQL\Executor\Promise\PromiseAdapter $promiseAdapter = null )

Method Details

execute() public static method

public static execute ( Schema $schema, $requestString, mixed $rootValue = null, $contextValue = null, $variableValues = null, string | null $operationName = null ) : GraphQL\Executor\Promise\Promise | array
$schema Schema
$requestString
$rootValue mixed
$operationName string | null
return GraphQL\Executor\Promise\Promise | array

executeAndReturnResult() public static method

public static executeAndReturnResult ( Schema $schema, $requestString, null $rootValue = null, $contextValue = null, null $variableValues = null, null $operationName = null ) : ExecutionResult | GraphQL\Executor\Promise\Promise
$schema Schema
$requestString
$rootValue null
$variableValues null
$operationName null
return GraphQL\Executor\ExecutionResult | GraphQL\Executor\Promise\Promise

getInternalDirectives() public static method

public static getInternalDirectives ( ) : array
return array

setPromiseAdapter() public static method

public static setPromiseAdapter ( GraphQL\Executor\Promise\PromiseAdapter $promiseAdapter = null )
$promiseAdapter GraphQL\Executor\Promise\PromiseAdapter