![]() |
![]()
| ![]() |
![]()
NAMEGraphQL::Type::Enum - GraphQL enum type SYNOPSISuse GraphQL::Type::Enum; my %text2value; my $type = GraphQL::Type::Enum->new( name => 'Enum', values => { value1 => {}, value2 => { value => 'yo' } }, ); ATTRIBUTESHas "name", "description" from GraphQL::Role::Named. valuesHash-ref mapping value labels to a hash-ref description. Description keys, all optional:
METHODSis_validTrue if given Perl entity is valid value for this type. Relies on unique stringification of the value. BUILDInternal method.
|