|
NAMEGraphQL::Type::Interface - GraphQL interface typeSYNOPSISuse GraphQL::Type::Interface; my $ImplementingType; my $InterfaceType = GraphQL::Type::Interface->new( name => 'Interface', fields => { field_name => { type => $scalar_type } }, resolve_type => sub { return $ImplementingType; }, ); ATTRIBUTESHas "name", "description" from GraphQL::Role::Named. Has "fields" from GraphQL::Role::FieldsOutput.resolve_typeOptional code-ref to resolve types.
Visit the GSP FreeBSD Man Page Interface. |