PHP Class 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; } });
Inheritance: extends Type, implements OutputType, implements InputType
Show file Open project: webonyx/graphql-php

Public Methods

Method Description
__construct ( ) ScalarType constructor.

Method Details

__construct() public method

ScalarType constructor.
public __construct ( )