collectVariableInQueryFieldMap function

IMap<String, GraphQLType> collectVariableInQueryFieldMap(
  1. GraphQLObjectType objectType
)

Implementation

IMap<String, GraphQLType> collectVariableInQueryFieldMap(
  GraphQLObjectType objectType,
) {
  return IMap(_collectVariableInQueryFieldList(objectType).groupFoldBy(
      (variable) => variable.name,
      (a, bVariable) =>
          a == null ? bVariable.type : intersectionType(a, bVariable.type)));
}