GraphQ...sEither(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::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