composer require devcake/graphql-php-scalars
You can use the provided Scalars just like any other type in your schema definition. Don't forget to add them in your schema.graphql
file. Like below
scalar Price @scalar(class: "DEVcake\GraphQLScalars")
A price string, formatted like 13.37