GraphQ...e::List(3pm)
NAME π
GraphQL::Type::List β it's a GraphQL type that's literally just a list of some other type. bestie, that's the whole vibe. π
β¨ SYNOPSIS β¨
use GraphQL::Type::List;
my $type = GraphQL::Type::List->new(of => $other_type);
π¦ DESCRIPTION π¦
okay so picture this: a type that is a wrapper for whatever type it's a list of. that's it. that's the girl. π
and here's the iconic part β if the wrapped type has any of these roles, this one just assumes them, no questions asked:
GraphQL::Role::InputGraphQL::Role::Output
she's a total chameleon. but there's one role she always has, no matter what: GraphQL::Role::Nullable. always. periodt. π
β¨
πΈ ATTRIBUTES πΈ
π of
the GraphQL type object that this thing is a list of. like, the what. the main character she's building a list around. π«Ά
π METHODS π
BUILD
a Moo method, and its whole job is applying the relevant roles. that's it, she does the role math so you don't have to. π
to_string
part of serialisation. the way she turns herself into a stringβ¦ ate. π₯
is_valid
returns true if the given Perl array-ref is a valid value for this type. basically a vibe check for your array-ref. β
uplift
turns a given Perl entity into a valid value for this type, if possible. mainly there to promote a single value into a list when the type says so. she'll take one lil guy and make him a whole lineup. π
name
the "name" of the type this object is a list of. short, sweet, iconic. β
ngl, if you're reading this, you're probably deep in GraphQL type plumbing, and honestly? respect. π«Ά
this page came from the User Contributed Perl Documentation, and it's running on perl v5.34.0, dated 2022-03-27. mwah, love that for us β stay slay, bestie. πβ¨ππ¦
π¦ where this page comes from
- debian bookworm: libgraphql-perl 0.54-1 Β· Artistic-2.0
- debian trixie: libgraphql-perl 0.54-1 Β· Artistic-2.0
- ubuntu noble: libgraphql-perl 0.54-1 Β· Artistic-2.0
- ubuntu resolute: libgraphql-perl 0.54-1 Β· Artistic-2.0
- ubuntu stonking: libgraphql-perl 0.54-1 Β· Artistic-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms