GraphQ...onNull(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

✨ GraphQL::Type::NonNull β€” bestie edition ✨

okay so this is GraphQL::Type::NonNull, a lil Perl module from the User Contributed Perl Documentation collection, and it's literally the type that says "nope, not null, we don't do that here" πŸ’…


πŸ’– NAME πŸ’–

GraphQL::Type::NonNull β€” a GraphQL type that is the non-null version of another type. it's giving "wrapper with boundaries" fr fr.


🌸 SYNOPSIS 🌸

here's the whole vibe in two lines, no cap:

use GraphQL::Type::NonNull;
my $type = GraphQL::Type::NonNull->new(of => $other_type);

that's it. that's the whole entrance. slay.


πŸ¦‹ DESCRIPTION πŸ¦‹

so basically this is a type that wraps another type. it's a wrapper. a little cozy jacket for a type. and what that jacket MEANS is that the data cannot be a null value. periodt. no nulls allowed, not even a lil one πŸ™ˆ


πŸŽ€ ATTRIBUTES πŸŽ€

πŸ’œ of

the GraphQL type object of which this thing is the non-null version. like, the original type. the one getting the non-null glow-up ✨


πŸ‘‘ METHODS πŸ‘‘

🌈 BUILD

a Moo method that applies the relevant roles. Moo does its lil magic and BUILD is where the roles get applied, iykyk.

⭐ to_string

part of serialisation. it does the stringifying thing.

πŸ’– is_valid

true if the given Perl value is a valid value for this type. returns true. or not. depending. that's the whole bit 🫢

πŸ“ name

the "name" of the type that this object is a non-null version of. so it's the name of the underlying type, not a new made-up name. cute.


🌟 quick reminder bestie: every method and attribute here is doing exactly what the original says, i didn't add a single thing, i just made it cute. don't come for me πŸ’€

perl v5.34.0 Β· 2022-03-27 Β· and that's the whole page babes, mwah πŸ’‹πŸŽ€βœ¨

πŸ“¦ where this page comes from