GraphQ...posite(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

πŸ’… GraphQL::Role::Composite(3pm) πŸ’…

okay so bestie, this page lives in the User Contributed Perl Documentation section of the manual, and it's about GraphQL::Role::Composite β€” a whole GraphQL object role. yes. a role. sit down, hydrate, let's go 🫢


✨ NAME ✨

GraphQL::Role::Composite β€” it's a GraphQL object role. that's the whole vibe. iconic. no notes.


🌈 SYNOPSIS 🌈

bestie you just… consume it. with it. like this:

with qw(GraphQL::Role::Composite);

or, if you're feeling chaotic and wanna do it at runtime instead (main character energy, honestly):

# or runtime
Role::Tiny->apply_roles_to_object($foo, qw(GraphQL::Role::Composite));

that's it. that's the whole entrance. slay πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

so what does it do? it allows type constraints for composite objects. literally that's it. it's giving "small role, big responsibility." type constraints, but make it composite. periodt ✨


lowkey reminder: this is a role, so you're not calling it, you're wearing it. with qw(...) it into your class and let it cook πŸ“

and that's the page, bestie!! no cap, you now fully understand GraphQL::Role::Composite. go forth and constrain those composite types πŸ’–

this was perl v5.34.0, dated 2022-03-27 β€” yeah, it's been around a minute, but it still ate. mwah πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from