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::Scalar(3) User Contributed Perl Documentation GraphQL::Type::Scalar(3)

GraphQL::Type::Scalar - GraphQL scalar type

  use GraphQL::Type::Scalar;
  my $int_type = GraphQL::Type::Scalar->new(
    name => 'Int',
    description =>
      'The `Int` scalar type represents non-fractional signed whole numeric ' .
      'values. Int can represent values between -(2^31) and 2^31 - 1. ',
    serialize => \&coerce_int,
    parse_value => \&coerce_int,
  );

Has "name", "description" from GraphQL::Role::Named.

Code-ref. Required.

Coerces from a Perl entity of the required type, to a GraphQL entity, or throws an exception.

Must throw an exception if passed a defined (i.e. non-null) but invalid Perl object of the relevant type. "undef" must always be valid.

Code-ref. Required if is for an input type.

Coerces from a GraphQL entity, to a Perl entity of the required type, or throws an exception.

True if given Perl entity is valid value for this type. Uses "serialize" attribute.

2022-01-15 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.