25 lines
628 B
Markdown
25 lines
628 B
Markdown
---
|
|
title: Scalars
|
|
intro: 'Scalars are primitive values Int, Float, String, Boolean, or ID.'
|
|
redirect_from:
|
|
- /v4/scalar
|
|
- /v4/reference/scalar
|
|
versions:
|
|
fpt: '*'
|
|
ghec: '*'
|
|
ghes: '*'
|
|
topics:
|
|
- API
|
|
autogenerated: graphql
|
|
---
|
|
|
|
## About scalars
|
|
|
|
[Scalars](https://spec.graphql.org/June2018/#sec-Scalars) are primitive values: `Int`, `Float`, `String`, `Boolean`, or `ID`.
|
|
|
|
When calling the GraphQL API, you must specify nested subfields until you return only scalars.
|
|
|
|
For more information, see [AUTOTITLE](/graphql/guides/introduction-to-graphql#field).
|
|
|
|
<!-- Content after this section is automatically generated -->
|