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::Object - GraphQL object type

Attributes

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

   interfaces
       Optional, thunked array-ref of interface type objects implemented.

   is_type_of
       Optional code-ref. Input is a value, an execution context hash-ref, and resolve-info hash-ref.

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

Name

       GraphQL::Type::Object - GraphQL object type

Synopsis

         use GraphQL::Type::Object;
         my $interface_type;
         my $implementing_type = GraphQL::Type::Object->new(
           name => 'Object',
           interfaces => [ $interface_type ],
           fields => { field_name => { type => $scalar_type, resolve => sub { '' } }},
         );

See Also