absinthe v0.2.2 Absinthe.Type.List

A wrapping type which declares the type of each item in the list.

Examples

Given a type, :item, to declare the type of a field/argument as a list of :item-typed values, you could do:

type: %Absinthe.Type.List{of_type: :item}

But normally this would be done using the Absinthe.Type.Definitions.list_of/1 convenience function:

type: list_of(:item)

Summary

Types

t()

A defined list type

Types

t :: %{of_type: Absinthe.Type.t}

A defined list type.

## Options

  • :of_type - The underlying, wrapped type.