devcake/graphql-php-scalars

A collection of custom scalar types for usage with Lighthouse-php

0.0.1 2021-02-04 14:19 UTC

This package is auto-updated.

Last update: 2024-05-04 21:44:39 UTC


README

Installation

composer require devcake/graphql-php-scalars

Usage

You can use the provided Scalars just like any other type in your schema definition. Don't forget to add them in your schema.graphqlfile. Like below

scalar Price @scalar(class: "DEVcake\GraphQLScalars")

Simple scalars

Price Scalar

A price string, formatted like 13.37