GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
GraphQL::Type::Enum(3) User Contributed Perl Documentation GraphQL::Type::Enum(3)

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:
value
Perl value of that item. If not specified, will be the string name of the value. Integers are often useful.
deprecation_reason
Reason if deprecated. If supplied, the hash for that value will also have a key "is_deprecated" with a true value.
description
Description.

True if given Perl entity is valid value for this type. Relies on unique stringification of the value.

Internal method.
2021-07-04 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.