logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

GraphQL::Type::InputObject - GraphQL input object type

Attributes

       Has "name", "description" from GraphQL::Role::Named.  Has "fields" from GraphQL::Role::FieldsInput.

Methods

is_valid
       True if given Perl hash-ref is a valid value for this type.

   uplift
       Turn given Perl entity into valid value for this type if possible. Applies default values.

perl v5.34.0                                       2022-03-27                    GraphQL::Type::InputObject(3pm)

Name

       GraphQL::Type::InputObject - GraphQL input object type

Synopsis

         use GraphQL::Type::InputObject;
         my $type = GraphQL::Type::InputObject->new(
           name => 'InputObject',
           fields => { field_name => { type => $scalar_type, resolve => sub { '' } }},
         );

See Also