@@ -503,7 +503,7 @@ describe('Type System Printer', () => {
503
503
ofType : GraphQLInt ,
504
504
serialize ( value ) {
505
505
return value % 2 === 1 ? value : null ;
506
- }
506
+ } ,
507
507
} ) ;
508
508
509
509
const OddType = new GraphQLScalarType ( {
@@ -793,10 +793,10 @@ describe('Type System Printer', () => {
793
793
types in GraphQL as represented by the \`__TypeKind\` enum.
794
794
795
795
Depending on the kind of a type, certain fields describe information about that
796
- type. Scalar types provide no information beyond a name and description , while
797
- Enum types provide their values. Object and Interface types provide the fields
798
- they describe. Abstract types, Union and Interface, provide the Object types
799
- possible at runtime. List and NonNull types compose other types.
796
+ type. Scalar types provide a name, description and how they serialize , while
797
+ Enum types provide their possible values. Object and Interface types provide the
798
+ fields they describe. Abstract types, Union and Interface, provide the Object
799
+ types possible at runtime. List and NonNull types compose other types.
800
800
"""
801
801
type __Type {
802
802
kind: __TypeKind!
@@ -812,7 +812,9 @@ describe('Type System Printer', () => {
812
812
813
813
"""An enum describing what kind of type a given \`__Type\` is."""
814
814
enum __TypeKind {
815
- """Indicates this type is a scalar."""
815
+ """
816
+ Indicates this type is a scalar. \`ofType\` may represent how this scalar is serialized.
817
+ """
816
818
SCALAR
817
819
818
820
"""
@@ -1013,8 +1015,8 @@ describe('Type System Printer', () => {
1013
1015
# types in GraphQL as represented by the \`__TypeKind\` enum.
1014
1016
#
1015
1017
# Depending on the kind of a type, certain fields describe information about that
1016
- # type. Scalar types provide a name, descriptionand how they serialize, while Enum
1017
- # types provide their possible values. Object and Interface types provide the
1018
+ # type. Scalar types provide a name, description and how they serialize, while
1019
+ # Enum types provide their possible values. Object and Interface types provide the
1018
1020
# fields they describe. Abstract types, Union and Interface, provide the Object
1019
1021
# types possible at runtime. List and NonNull types compose other types.
1020
1022
type __Type {
0 commit comments