listOf<Value, Serialized> function

GraphQLListType<Value?, Serialized> listOf<Value, Serialized>(
  1. GraphQLType<Value, Serialized> innerType
)

Shorthand to create a GraphQLListType.

Implementation

GraphQLListType<Value?, Serialized> listOf<Value, Serialized>(
  GraphQLType<Value, Serialized> innerType,
) {
  if (innerType is GraphQLNonNullType<Value, Serialized>) {
    return _GraphQLNonNullListType(innerType);
  }
  return _GraphQLNullableListType(innerType);
}