Custom Scalars in GraphQL

Mirko Nasato – 17 September 2018

GraphQL provides a small set of predefined scalar types: Boolean, ID, Int, Float, and String. But we can define our own custom scalar types as well. In this post we’ll see how to do that, with an example based on Apollo Server.