GraphQL\Type\Introspection::_field PHP Method

_field() public static method

public static _field ( )
    public static function _field()
    {
        if (!isset(self::$map['__Field'])) {
            self::$map['__Field'] = new ObjectType(['name' => '__Field', 'description' => 'Object and Interface types are described by a list of Fields, each of ' . 'which has a name, potentially a list of arguments, and a return type.', 'fields' => function () {
                return ['name' => ['type' => Type::nonNull(Type::string())], 'description' => ['type' => Type::string()], 'args' => ['type' => Type::nonNull(Type::listOf(Type::nonNull(self::_inputValue()))), 'resolve' => function (FieldDefinition $field) {
                    return empty($field->args) ? [] : $field->args;
                }], 'type' => ['type' => Type::nonNull(self::_type()), 'resolve' => function ($field) {
                    return $field->getType();
                }], 'isDeprecated' => ['type' => Type::nonNull(Type::boolean()), 'resolve' => function (FieldDefinition $field) {
                    return !!$field->deprecationReason;
                }], 'deprecationReason' => ['type' => Type::string()]];
            }]);
        }
        return self::$map['__Field'];
    }