GraphQL is a wonderful new approach to application data and API layers that's gaining momentum. However, for all of GraphQL's greatness, it is missing a couple of things that we have (and you might) find very useful in defining your schemas. Namely GraphQL has a limited set of scalar types, and we have found there are some additional scalar types that are useful in being more precise in our schemas. Thankfully, those sharp GraphQL folks provided a simple way to add new custom scalar types if needed. That's what this package does. GraphQL Scalars is a library of custom GraphQL scalar types for creating precise type-safe GraphQL schemas. The GraphQL Specification has the Int, Float, String, Boolean and ID Scalar types by default. Those scalar types help you identify the data and validate it before transferring it between client and server. But you might need more specific scalars for your GraphQL application, to help you better describe and validate your app’s data.

Features

  • Communicate to users of your schema exactly what they can expect or to at least reduce ambiguity in cases where that's possible
  • Run-time type checking
  • GraphQL helps to tighten up the contract between client and server
  • The other benefit of using GraphQL scalar types is parsing and serializing while transferring data
  • GraphQL Scalars is a library of custom GraphQL scalar types for creating precise type-safe GraphQL schemas
  • The GraphQL Specification has the Int, Float, String, Boolean and ID Scalar types by default

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow GraphQL Scalars

GraphQL Scalars Web Site

You Might Also Like
Our Free Plans just got better! | Auth0 by Okta Icon
Our Free Plans just got better! | Auth0 by Okta

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your secuirty. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of GraphQL Scalars!

Additional Project Details

Programming Language

TypeScript

Related Categories

TypeScript Software Development Software

Registered

2023-03-02