PHP Класс GraphQL\Type\Definition\ScalarType

The leaf values of any request and input values to arguments are Scalars (or Enums) and are defined with a name and a series of coercion functions used to ensure validity. Example: var OddType = new GraphQLScalarType({ name: 'Odd', coerce(value) { return value % 2 === 1 ? value : null; } });
Наследование: extends Type, implements OutputType, implements InputType
Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( ) ScalarType constructor.

Описание методов

__construct() публичный Метод

ScalarType constructor.
public __construct ( )