GraphQL::Type::List(3pm)

GraphQL::Type::List3pm

Graphql type that is a list of another type

Usage

  use GraphQL::Type::List;
  my $type = GraphQL::Type::List->new(of => $other_type);

Overview

Type that is a wrapper for the type it is a list of. If the wrapped type has any of these roles, it will assume them: GraphQL::Role::Input, GraphQL::Role::Output. It is always GraphQL::Role::Nullable.

Attributes

of

GraphQL type object of which this is a list.

Methods

Build

Moo method that applies the relevant roles.

to_string

Part of serialisation.

is_valid

True if given Perl array-ref is a valid value for this type.

uplift

Turn given Perl entity into valid value for this type if possible. Mainly to promote single value into a list if type dictates.

name

The "name" of the type this object is a list of.

Releases

Unchanged in 2 releases since Debian 12 (Bookworm).

  1. 12–13

From libgraphql-perl 0.54-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.