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;
}
});
Показать файл
Открыть проект
Открытые методы
Описание методов
__construct()
публичный Метод