Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

graphql-scalars

Urigo2.4mMIT1.24.0TypeScript support: included

A collection of scalar types not included in base GraphQL.

readme

GraphQLConf 2024 Banner: September 10-12, San Francisco. Hosted by the GraphQL Foundation

npm version Discord Chat

A library of custom GraphQL scalar types for creating precise type-safe GraphQL schemas.

Getting Started

Please refer to our website for all the documentation related to GraphQL Scalars

Contributions

Contributions, issues and feature requests are very welcome. If you are using this package and fixed a bug for yourself, please consider submitting a PR!

And if this is your first time contributing to this project, please do read our Contributor Workflow Guide before you get started off.

Code of Conduct

Help us keep GraphQL Scalars open and inclusive. Please read and follow our Code of Conduct as adopted from Contributor Covenant

License

Released under the MIT license.

Thanks

This library was originally published as @okgrow/graphql-scalars. It was created and maintained by the company ok-grow. We, The Guild, took over the maintenance of that library later on.

We also like to say thank you to @adriano-di-giovanni for being extremely generous and giving us the graphql-scalars name on npm which was previously owned by his own library.

And thanks to excitement-engineer for graphql-iso-date, stems for graphql-bigint, taion for graphql-type-json, langpavel for GraphQLTimestamp.js, vespertilian for Duration scalar, maxwellsmart84 for NonEmptyString scalar

changelog

CHANGELOG moved to GitHub releases

1.24.0

Minor Changes

1.23.0

Minor Changes

Patch Changes

1.22.5

Patch Changes

1.22.4

Patch Changes

1.22.3

Patch Changes

  • 9029d0a Thanks @ardatan! - Parse BigInt as Number s if they are safe and BigInt is not serializable

1.22.2

Patch Changes

1.22.1

Patch Changes

1.22.0

Minor Changes

1.21.3

Patch Changes

  • 7460ec4 Thanks @ardatan! - Fix the spec reference in `EmailAddress`

  • ef0585a Thanks @ardatan! - If JSON serializer is missing for BigInt use number serialization for safe integers and string for unsafe integers by warning the users.

1.21.2

Patch Changes

  • 7b3811d Thanks @ardatan! - Fix wrong scalar name in the scalar configuration

1.21.1

Patch Changes

1.21.0

Minor Changes

Patch Changes

1.20.1

Patch Changes

1.20.0

Minor Changes

1.19.0

Minor Changes

  • 8ba194c Thanks @ardatan! - - feat: add IP scalar (#1717) - Thanks @mammadatei!
    • feat: add SemVer scalar (#1728) - Thanks @mammadatei!

1.18.0

Minor Changes

  • 4db9d82 Thanks @saihaj! - CUID Scalar

    A field whose value conforms to the standard cuid format as specified in This Repo.