GraphQ...posite(3pm)
π 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
- 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