Skip to content

Commit 99e1d70

Browse files
committed
Update wording
1 parent 56ef5e6 commit 99e1d70

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

documentation/scalars.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,22 @@ The [GraphQL specification](https://spec.graphql.org/draft/#sec-Scalars) states
2121

2222
The class ``graphql.Scalars`` contains singleton instances of the provided scalar types.
2323

24-
[graphql-java-extended-scalars](https://github.com/graphql-java/graphql-java-extended-scalars) adds the following scalar types which are useful in Java based systems:
24+
[graphql-java-extended-scalars](https://github.com/graphql-java/graphql-java-extended-scalars) adds many more scalars, including the following which are useful in Java based systems:
2525

2626
* Long aka ``GraphQLLong`` - a java.lang.Long based scalar
2727
* Short aka ``GraphQLShort`` - a java.lang.Short based scalar
2828
* Byte aka ``GraphQLByte`` - a java.lang.Byte based scalar
2929
* BigDecimal aka ``GraphQLBigDecimal`` - a java.math.BigDecimal based scalar
3030
* BigInteger aka ``GraphQLBigInteger`` - a java.math.BigInteger based scalar
3131

32+
See the [documentation](https://github.com/graphql-java/graphql-java-extended-scalars) for how to use Extended Scalars.
33+
3234
## Writing your own Custom Scalars
3335

34-
You can write your own custom scalar implementations. In doing so you take on the responsibility for coercing values
36+
If the scalar you want isn't in a library, you can also write your own custom scalar implementation. In doing so you take on the responsibility for coercing values
3537
at runtime, which we will explain in a moment.
3638

37-
Imagine we decide we need to have an email scalar type. It will take email addresses as input and output.
39+
Imagine we decide we need to have an email scalar type. It will take email addresses as input and output.
3840

3941
We would create a singleton ``graphql.schema.GraphQLScalarType`` instance for this.
4042

0 commit comments

Comments
 (0)