GraphQL::Type::Object - GraphQL object type
use GraphQL::Type::Object; my $interface_type; my $implementing_type = GraphQL::Type::Object->new( name => 'Object', interfaces => [ $interface_type ], fields => { field_name => { type => $scalar_type, resolve => sub { '' } }}, );
Has name, description from GraphQL::Role::Named. Has fields from GraphQL::Role::FieldsOutput.
name
description
fields
Optional, thunked array-ref of interface type objects implemented.
Optional code-ref. Input is a value, an execution context hash-ref, and resolve-info hash-ref.
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.