PHP Class GraphQL\Schema

Datei anzeigen Open project: webonyx/graphql-php Class Usage Examples

Public Methods

Method Description
__construct ( array $config = null ) Schema constructor.
getDirective ( $name ) : Directive
getDirectives ( ) : Directive[]
getMutationType ( ) : ObjectType
getPossibleTypes ( GraphQL\Type\Definition\AbstractType $abstractType ) : ObjectType[]
getQueryType ( ) : ObjectType
getSubscriptionType ( ) : ObjectType
getType ( string $name ) : Type
getTypeMap ( ) : array
isPossibleType ( GraphQL\Type\Definition\AbstractType $abstractType, ObjectType $possibleType ) : boolean

Private Methods

Method Description
extractTypes ( $type ) : array
init ( array $config )

Method Details

__construct() public method

Schema constructor.
public __construct ( array $config = null )
$config array

getDirective() public method

public getDirective ( $name ) : Directive
$name
return GraphQL\Type\Definition\Directive

getDirectives() public method

public getDirectives ( ) : Directive[]
return GraphQL\Type\Definition\Directive[]

getMutationType() public method

public getMutationType ( ) : ObjectType
return GraphQL\Type\Definition\ObjectType

getPossibleTypes() public method

public getPossibleTypes ( GraphQL\Type\Definition\AbstractType $abstractType ) : ObjectType[]
$abstractType GraphQL\Type\Definition\AbstractType
return GraphQL\Type\Definition\ObjectType[]

getQueryType() public method

public getQueryType ( ) : ObjectType
return GraphQL\Type\Definition\ObjectType

getSubscriptionType() public method

public getSubscriptionType ( ) : ObjectType
return GraphQL\Type\Definition\ObjectType

getType() public method

public getType ( string $name ) : Type
$name string
return GraphQL\Type\Definition\Type

getTypeMap() public method

public getTypeMap ( ) : array
return array

isPossibleType() public method

public isPossibleType ( GraphQL\Type\Definition\AbstractType $abstractType, ObjectType $possibleType ) : boolean
$abstractType GraphQL\Type\Definition\AbstractType
$possibleType GraphQL\Type\Definition\ObjectType
return boolean