GraphQ...:Input(3pm)
β¨ NAME β¨
GraphQL::Role::Input β it's a GraphQL object role, bestie π
(also, for the record, this page lives in the User Contributed Perl Documentation section, and the title line up top reads GraphQ...:Input(3pm) β yes the name is truncated, no I did not do that, the man page did π«Ά)
πΈ SYNOPSIS πΈ
okay so here's the vibe, you just mix it in:
with qw(GraphQL::Role::Input);
or, if you're feeling spontaneous and want to do it at runtime instead:
# or runtime
Role::Tiny->apply_roles_to_object($foo, qw(GraphQL::Role::Input));
literally that's it. two lines. iconic. β¨
π¦ DESCRIPTION π¦
so what does it actually do, you ask? Allows type constraints for input objects. π
that's the whole thing, no cap. it hands your input objects the ability to have type constraints. it's giving "small role, big responsibility" π
ngl there is nothing else hiding in here β no extra options, no env vars, no exit statuses, no gotchas. it's a short page and it ate π
and that's a wrap, bestie!! this was pulled from perl v5.34.0, dated 2022-03-27, and yeah it's the User Contributed Perl Documentation corner of the internet π§ stay slay, keep your types constrained π
π¦ 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