GraphQ...sEither(3pm)
β¨ NAME β¨
GraphQL::Role::FieldsEither β it's a GraphQL object role, bestie, and it's holding all the code that every field has in common π
(also, the manual page header calls it GraphQ...sEither(3pm) because terminals are dramatic and truncate things, but we know her full name π«Ά)
π SYNOPSIS π
okay so you wanna use it? here's the vibe:
with qw(GraphQL::Role::FieldsEither);
# or runtime
Role::Tiny->apply_roles_to_object($foo, qw(GraphQL::Role::FieldsEither));
two ways, same energy. you either with it at compile time like a normal person, or you pull the runtime move and call Role::Tiny->apply_roles_to_object on your object. both ate. π₯
πΈ DESCRIPTION πΈ
Provides code useful to either type of fields.
that's it, that's the whole thing π it's a role, it hands out shared code, and it doesn't gatekeep between the two flavours of fields. lowkey iconic of it.
ngl bestie there's not a ton of lore here β it's a role module, not a saga. but now you know exactly what it does and you can go use it with confidence. periodt. π
made with love for perl v5.34.0, dated 2022-03-27, straight from the User Contributed Perl Documentation collection π¦
that's the whole page, bestie β go slay some GraphQL fields π β¨
π¦ 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