PHP Class GraphQL\Type\SchemaValidator

Mostra file Open project: webonyx/graphql-php Class Usage Examples

Public Methods

Method Description
getAllRules ( )
interfacePossibleTypesMustImplementTheInterfaceRule ( )
interfacesAreCorrectlyImplemented ( ) Enforce correct interface implementations
noInputTypesAsOutputFieldsRule ( )
noOutputTypesAsInputArgsRule ( )
typesInterfacesMustShowThemAsPossibleRule ( )
validate ( Schema $schema, $argRules = null ) : array

Private Methods

Method Description
assertObjectImplementsInterface ( Schema $schema, ObjectType $object, InterfaceType $iface )

Method Details

getAllRules() public static method

public static getAllRules ( )

interfacePossibleTypesMustImplementTheInterfaceRule() public static method

interfacesAreCorrectlyImplemented() public static method

Enforce correct interface implementations

noInputTypesAsOutputFieldsRule() public static method

public static noInputTypesAsOutputFieldsRule ( )

noOutputTypesAsInputArgsRule() public static method

public static noOutputTypesAsInputArgsRule ( )

typesInterfacesMustShowThemAsPossibleRule() public static method

validate() public static method

public static validate ( Schema $schema, $argRules = null ) : array
$schema GraphQL\Schema
return array