GraphQ...Object(3pm)
π GraphQL::Type::InputObject π
okay bestie, so this is the manual page for GraphQL::Type::InputObject, and it lives in the User Contributed Perl Documentation corner of the internet (the 3pm section, iykyk). It's literally a GraphQL input object type and it is, no cap, exactly what it says on the tin. π
β¨ NAME β¨
GraphQL::Type::InputObject β GraphQL input object type π¦
πΈ SYNOPSIS πΈ
not me showing you the whole thing, here's the vibe:
use GraphQL::Type::InputObject;
my $type = GraphQL::Type::InputObject->new(
name => 'InputObject',
fields => { field_name => { type => $scalar_type, resolve => sub { '' } }},
);
that's it, that's the whole entrance. iconic honestly. π
π ATTRIBUTES π
bestie, it inherits its whole personality:
- It has
nameanddescriptionfromGraphQL::Role::Named. - It has
fieldsfromGraphQL::Role::FieldsInput.
like, it doesn't even have to try, the roles did all the work. main character energy fr fr. β¨
π§ METHODS π§
π₯ is_valid
True if given Perl hash-ref is a valid value for this type.
so you hand it a Perl hash-ref and it goes "yep, valid" or it doesn't. vibe check for hash-refs. π
π₯ uplift
Turn given Perl entity into valid value for this type if possible. Applies default values.
it's giving glow-up machine π β it takes your Perl entity and, if possible, turns it into a valid value for this type. And yes, it applies default values while it's at it, because it's generous like that. π
lowkey a tiny page but every single bit of it is here, no skips, no cuts, periodt. π
and that's the whole thing, bestie! this was perl v5.34.0, dated 2022-03-27, from the GraphQ...Object(3pm) page. go slay some input objects π«Άβ¨
π¦ 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