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-11-04 22:38:17 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