GraphQL Scalars - How to use Custom Scalars in Java
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:
GraphQL Documentation:
1,655 view
23
3
2 years ago 01:07:05 1
React with TypeScript Crash Course
7 years ago 00:26:52 3
Build a Twitter Clone with Apollo Graphql & React-Native - Part: 2