GraphQ...istable(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::Listable β€” it's giving GraphQL object role, bestie πŸ’…


✨ SYNOPSIS ✨

okay so you just pull it in like this:

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

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

yes you can do it at runtime too, Role::Tiny has you covered, no cap 🫢


πŸ’– DESCRIPTION πŸ’–

So basically this role is your little shortcut bestie: it hands you a method for grabbing a type object's list wrapper without you having to go hunt for it yourself. That's it. That's the whole vibe. ✨


πŸ‘‘ METHODS πŸ‘‘

list

list returns a wrapped version of the type using GraphQL::Type::List. that's the entire thing, she's simple, she's iconic, she slays πŸ”₯


and that's the whole page, babes πŸŽ€ this lil masterpiece comes to you from perl v5.34.0, dated 2022-03-27 β€” documented as user-contributed perl documentation. go forth and wrap your types πŸ’œπŸ¦‹

πŸ“¦ where this page comes from