Back to Browse

GraphQL Scalars - How to use Custom Scalars in Java

5.0K views
Jan 31, 2023
22:01

Welcome friends! Today, I will be discussing scalars in GraphQL - the five scalar types defined in the GraphQL specification, and how you can use custom scalars when needed. We'll be creating a brand new Spring Boot 3 project which will include Spring for GraphQL, and then we'll take a look at defining our schema. We'll use the built-in scalars, and then create a custom scalar for things like price and date created. We'll use a Command Line Runner to create a few products, and then use the GraphQL Playground to validate our query. Follow along as Dan Vega guides us through creating a GraphQL API with custom scalars! 🔗Resources & Links mentioned in this video: Github Repository: https://github.com/danvega/graphql-scalars GraphQL Documentation: https://www.graphql-java.com/documentation/scalars/ 👋🏻Connect with me: Website: https://www.danvega.dev Twitter: https://twitter.com/therealdanvega Github: https://github.com/danvega LinkedIn: https://www.linkedin.com/in/danvega Newsletter: https://www.danvega/dev.newsletter SUBSCRIBE TO MY CHANNEL: http://bit.ly/2re4GH0 ❤️

Download

1 formats

Video Formats

360pmp434.5 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

GraphQL Scalars - How to use Custom Scalars in Java | NatokHD