GraphQL::Type::Enum(3pm) | User Contributed Perl Documentation | GraphQL::Type::Enum(3pm) |
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.
Hash-ref mapping value labels to a hash-ref description. Description keys, all optional:
True if given Perl entity is valid value for this type. Relies on unique stringification of the value.
Internal method.
2022-03-27 | perl v5.34.0 |