PHP 클래스 GraphQL\GraphQL

파일 보기 프로젝트 열기: webonyx/graphql-php 1 사용 예제들

공개 메소드들

메소드 설명
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 )

메소드 상세

execute() 공개 정적인 메소드

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
리턴 GraphQL\Executor\Promise\Promise | array

executeAndReturnResult() 공개 정적인 메소드

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
리턴 GraphQL\Executor\ExecutionResult | GraphQL\Executor\Promise\Promise

getInternalDirectives() 공개 정적인 메소드

public static getInternalDirectives ( ) : array
리턴 array

setPromiseAdapter() 공개 정적인 메소드

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