PHP Class GraphQL\GraphQL

Afficher le fichier Open project: webonyx/graphql-php Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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
Résultat GraphQL\Executor\Promise\Promise | array

executeAndReturnResult() public static méthode

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
Résultat GraphQL\Executor\ExecutionResult | GraphQL\Executor\Promise\Promise

getInternalDirectives() public static méthode

public static getInternalDirectives ( ) : array
Résultat array

setPromiseAdapter() public static méthode

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