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::Interface - GraphQL interface type

Attributes

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

   resolve_type
       Optional code-ref to resolve types.

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

Name

       GraphQL::Type::Interface - GraphQL interface type

Synopsis

         use GraphQL::Type::Interface;
         my $ImplementingType;
         my $InterfaceType = GraphQL::Type::Interface->new(
           name => 'Interface',
           fields => { field_name => { type => $scalar_type } },
           resolve_type => sub {
             return $ImplementingType;
           },
         );

See Also