GraphQL::Schema - GraphQL schema object
use GraphQL::Schema; use GraphQL::Type::Object; my $schema = GraphQL::Schema->new( query => GraphQL::Type::Object->new( name => 'Query', fields => { getObject => { type => $interfaceType, resolve => sub { return {}; } } } ) );
Class implementing GraphQL schema.
In this schema, returns a hash-ref mapping all types' names to their type object.
In this schema, get all of either the implementation types (if interface) or possible types (if union) of the $abstract_type.
$abstract_type
In this schema, is the given $possible_type either an implementation (if interface) or a possibility (if union) of the $abstract_type?
$possible_type
In this schema, does the given $type implement interface $iface? If not, throw exception.
$type
$iface
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.