HonzaBejvl/graphpinator-extra-types
:zap::globe_with_meridians::zap: Some useful and commonly used types, both scalar or composite.
GraPHPinator Extra types

โก๐โก Some useful and commonly used types, both scalar or composite.
Introduction
This package includes some commonly used types. Those types are not covered by the specs and therefore are not part of the main Graphpinator package.
Installation
Install package using composer
composer require infinityloop-dev/graphpinator-extra-types
How to use
In order to enable the types on your server, the only thing you need to do is to put selected types to your Container. You may use all or only some.
Some of the types have special requirement on
infinityloop-dev/graphpinator-constraint-directives, which needs be enabled first if you with to use according type.
This package contains following types:
Miscellaneous
\Graphpinator\ExtraTypes\AnyType- Any scalar value is accepted =
string | int | float | bool.
- Any scalar value is accepted =
\Graphpinator\ExtraTypes\VoidType- Only
null.
- Only
\Graphpinator\ExtraTypes\BigIntType- GraphqQL
Intis required to be 32bit,BigInttype bypasses that restriction and allows for 64bit integers.
- GraphqQL
String value
\Graphpinator\ExtraTypes\DateTimeType- Datetime in ISO 8601 format.
\Graphpinator\ExtraTypes\DateType- Date in ISO 8601 format (the date part).
\Graphpinator\ExtraTypes\TimeType- Time in ISO 8601 format (the time part).
\Graphpinator\ExtraTypes\JsonType- Valid JSON.
\Graphpinator\ExtraTypes\EmailAddressType- Email address.
\Graphpinator\ExtraTypes\UrlType- URL adress.
\Graphpinator\ExtraTypes\MacType- MAC identifier.
\Graphpinator\ExtraTypes\IPv4Type- IPv4 address.
\Graphpinator\ExtraTypes\IPv6Type- IPv6 address.
\Graphpinator\ExtraTypes\PostalCodeType- Postal/Zip code.
\Graphpinator\ExtraTypes\PhoneNumberType- Phone number.
Composite types & inputs
\Graphpinator\ExtraTypes\PointType&\Graphpinator\ExtraTypes\PointInput- Any pair of x/y values.
\Graphpinator\ExtraTypes\GpsType&\Graphpinator\ExtraTypes\GpsInput- GPS coordinates.
- Requires constraint-directives.
\Graphpinator\ExtraTypes\HslType&\Graphpinator\ExtraTypes\HslInput- HSL color scheme.
- Requires constraint-directives.
\Graphpinator\ExtraTypes\HslaType&\Graphpinator\ExtraTypes\HslaInput- HSL color scheme with added alpha.
- Requires constraint-directives.
\Graphpinator\ExtraTypes\RgbType&\Graphpinator\ExtraTypes\RgbInput- RGB color scheme.
- Requires constraint-directives.
\Graphpinator\ExtraTypes\RgbaType&\Graphpinator\ExtraTypes\RgbaInput- RGB color scheme with added alpha.
- Requires constraint-directives.