lighthouse-math-scalars:灯塔的数学标量集合

时间:2021-05-24 06:51:41
【文件属性】:
文件名称:lighthouse-math-scalars:灯塔的数学标量集合
文件大小:12KB
文件格式:ZIP
更新时间:2021-05-24 06:51:41
PHP 灯塔数学标尺 可与一起使用的自定义标量类型的集合。 安装 composer require olivernybroe/lighthouse-math-scalars 用法 您可以像在架构定义中使用任何其他类型一样使用提供的标量。 标量会自动在Lighthouse中注册。 type Battle { id : ID ! attacker : User ! defender : User ! gold_stolen_ratio : Percentage ! gold_stolen : BigInteger ! } 标量 大整数 此标量表示最大为2^63的整数,而内置的Int类型限于2^31 。 返回时,该值表示为整数,而不是字符串。 BigIntegerString 此标量表示一个无限制大小的整数。 它始终以字符串形式返回值。 BigInteger将始终返回一个整数,
【文件预览】:
lighthouse-math-scalars-main
----.gitignore(48B)
----src()
--------MathScalarServiceProvider.php(721B)
--------Scalars()
--------Casts()
----LICENSE.md(1KB)
----composer.json(1KB)
----.github()
--------workflows()
----README.md(2KB)
----phpunit.xml(619B)
----tests()
--------ExampleTest.php(71B)
--------Scalars()
--------Pest.php(1KB)

网友评论