src/Node/Plural.php
public static function pluralIdentifyingRootField(array $config)
    {
        $inputArgs = [];
        $argName = self::getArrayValue($config, 'argName');
        $inputArgs[$argName] = [
            'type' => Type::nonNull(
                Type::listOf(
                    Type::nonNull(self::getArrayValue($config, 'inputType'))
                )
            )
        ];

        return [
            'description' => isset($config['description']) ? $config['description'] : null,
            'type' => Type::listOf(self::getArrayValue($config, 'outputType')),
            'args' => $inputArgs,
            'resolve' => function ($obj, $args, $context, ResolveInfo $info) use ($argName, $config) {
                $inputs = $args[$argName];
                return array_map(function($input) use ($config, $context, $info) {
                    return call_user_func(self::getArrayValue($config, 'resolveSingleInput'), $input, $context, $info);
                }, $inputs);
            }
        ];
    }
public static function pluralIdentifyingRootField(array $config)
    {
        $inputArgs = [];
        $argName = self::getArrayValue($config, 'argName');
        $inputArgs[$argName] = [
            'type' => Type::nonNull(
                Type::listOf(
                    Type::nonNull(self::getArrayValue($config, 'inputType'))
                )
            )
        ];

        return [
            'description' => isset($config['description']) ? $config['description'] : null,
            'type' => Type::listOf(self::getArrayValue($config, 'outputType')),
            'args' => $inputArgs,
            'resolve' => function ($obj, $args, $context, ResolveInfo $info) use ($argName, $config) {
                $inputs = $args[$argName];
                return array_map(function($input) use ($config, $context, $info) {
                    return call_user_func(self::getArrayValue($config, 'resolveSingleInput'), $input, $context, $info);
                }, $inputs);
            }
        ];
    }
public static function pluralIdentifyingRootField ( array $ config ) { $ inputArgs = [ ] ; $ argName = self :: getArrayValue ( $ config , 'argName' ) ; $ inputArgs [ $ argName ] = [ 'type' => Type :: nonNull ( Type :: listOf ( Type :: nonNull ( self :: getArrayValue ( $ config , 'inputType' ) ) ) ) ] ; return [ 'description' => isset ( $ config [ 'description' ] ) ? $ config [ 'description' ] : null , 'type' => Type :: listOf ( self :: getArrayValue ( $ config , 'outputType' ) ) , 'args' => $ inputArgs , 'resolve' => function ( $ obj , $ args , $ context , ResolveInfo $ info ) use ( $ argName , $ config ) { $ inputs = $ args [ $ argName ] ; return array_map ( function ( $ input ) use ( $ config , $ context , $ info ) { return call_user_func ( self :: getArrayValue ( $ config , 'resolveSingleInput' ) , $ input , $ context , $ info ) ; } , $ inputs ) ; } ] ; }
Returns configuration for Plural identifying root field

type PluralIdentifyingRootFieldConfig = {
argName: string,
inputType: GraphQLInputType,
outputType: GraphQLOutputType,
resolveSingleInput: (input: any, info: GraphQLResolveInfo) => ?any,
description?: ?string,
};

@param array $config
@return array
Returns configuration for Plural identifying root field