View on
MetaCPAN
Ed J > GraphQL-0.13 > GraphQL::Type::Interface

Download:
GraphQL-0.13.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.02   Source   Latest Release: GraphQL-0.24

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;
    },
  );

ATTRIBUTES ^

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

resolve_type

Optional code-ref to resolve types.

syntax highlighting: