GraphQL::Type::List(3pm) | User Contributed Perl Documentation | GraphQL::Type::List(3pm) |
GraphQL::Type::List - GraphQL type that is a list of another type
use GraphQL::Type::List; my $type = GraphQL::Type::List->new(of => $other_type);
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.
GraphQL type object of which this is a list.
Moo method that applies the relevant roles.
Part of serialisation.
True if given Perl array-ref is a valid value for this type.
Turn given Perl entity into valid value for this type if possible. Mainly to promote single value into a list if type dictates.
The "name" of the type this object is a list of.
2022-03-27 | perl v5.34.0 |