GraphQL::Type::Interface(3pm) | User Contributed Perl Documentation | GraphQL::Type::Interface(3pm) |
GraphQL::Type::Interface - GraphQL interface type
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; }, );
Has "name", "description" from GraphQL::Role::Named. Has "fields" from GraphQL::Role::FieldsOutput.
Optional code-ref to resolve types.
2022-03-27 | perl v5.34.0 |