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.
name
description
fields
Optional code-ref to resolve types.
To install GraphQL, copy and paste the appropriate command in to your terminal.
cpanm
cpanm GraphQL
CPAN shell
perl -MCPAN -e shell install GraphQL
For more information on module installation, please visit the detailed CPAN module installation guide.