Absinthe.Type.List (absinthe v1.6.4) View Source

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 Absinthe.Schema.Notation.list_of/1.

type: list_of(:item)

Link to this section Summary

Types

t()

A defined list type.

Functions

Callback implementation for c:Absinthe.Introspection.TypeKind.kind/0.

Link to this section Types

Specs

t() :: %Absinthe.Type.List{of_type: Absinthe.Type.t()}

A defined list type.

## Options

  • :of_type - The underlying, wrapped type.

Link to this section Functions

Callback implementation for c:Absinthe.Introspection.TypeKind.kind/0.