GraphQ...ullable(3pm)
β¨ NAME β¨
GraphQL::Role::Nullable β it's a GraphQL object role, bestie π that's literally the whole thing, but like, stay with me, the details are cute.
πΈ SYNOPSIS πΈ
ok so first things first, you pull the role in like this:
with qw(GraphQL::Role::Nullable);
orrrr if you're feeling chaotic and wanna do it at runtime instead:
Role::Tiny->apply_roles_to_object($foo, qw(GraphQL::Role::Nullable));
both are valid, pick your fighter π«Ά
π¦ DESCRIPTION π¦
Allows type constraints for nullable objects. yeah that's it. that's the vibe. it lets your types be nullable, no cap. sometimes things just can be null and that's not a flaw, that's range π
π METHODS π
π non_null
Returns a wrapped version of the type using GraphQL::Type::NonNull, i.e. that may not be null.
so like, the glow-up move: you take your chill nullable type and you wrap it so it's giving absolutely not, no nulls allowed energy π if you want the not-nullable version, this is the method, periodt.
k that's the whole page bestie, short and iconic fr fr π
this one's from the User Contributed Perl Documentation, sitting pretty at perl v5.34.0, dated 2022-03-27 π catch you in the next man page, 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