class NullType in GraphQL 8
Same name and namespace in other branches
- 8.2 src/NullType.php \Drupal\graphql\NullType
Hierarchy
- class \Drupal\graphql\NullType extends \Fubhy\GraphQL\Type\Definition\Types\ScalarType
Expanded class hierarchy of NullType
2 files declare their use of NullType
- ContentEntityTypeResolver.php in src/
TypeResolver/ ContentEntityTypeResolver.php - TypedDataTypeResolver.php in src/
TypeResolver/ TypedDataTypeResolver.php
File
- src/
NullType.php, line 8
Namespace
Drupal\graphqlView source
class NullType extends ScalarType {
protected $name = 'Null';
/**
* @param mixed $value
*
* @return mixed
*/
public function coerce($value) {
return NULL;
}
/**
* @param \Fubhy\GraphQL\Language\Node $value
*
* @return mixed
*/
public function coerceLiteral(Node $value) {
return 'null';
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
NullType:: |
protected | property | ||
NullType:: |
public | function | ||
NullType:: |
public | function |