GraphQ...:Input(3pm)

πŸ“¦
version 0.54 Β· 2 versions
  • 0.54 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 0.53 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

✨ 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