Scalar Types

Get introduced to the various built-in GraphQL scalar types used to express data.

We'll cover the following

A GraphQL object type has a name and fields, but at some point, those fields have to be resolved into factual data. Scalar types can achieve this. They represent the raw data of the query, which could be Int, Float, String, Boolean, or ID.

In the following GraphQL snippet, the id, pizza, and stock fields will resolve to scalar types.

Get hands-on with 1200+ tech skills courses.