logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

GraphQL::Type::List - GraphQL type that is a list of another type

Attributes

of
       GraphQL type object of which this is a list.

Description

       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.

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.

perl v5.34.0                                       2022-03-27                           GraphQL::Type::List(3pm)

Name

       GraphQL::Type::List - GraphQL type that is a list of another type

Synopsis

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

See Also