GraphQL::Type::Enum - GraphQL enum type
use GraphQL::Type::Enum; my %text2value; my $type = GraphQL::Type::Enum->new( name => 'Enum', values => { value1 => {}, value2 => { value => 'yo' } }, );
Has name, description from GraphQL::Role::Named.
name
description
Hash-ref mapping value labels to a hash-ref description. Description keys, all optional:
Perl value of that item. If not specified, will be the string name of the value. Integers are often useful.
Reason if deprecated.
Description.
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.