Skip to content

Commit 41f262d

Browse files
authored
correct outdated documentation
according #3231 returning `null` was no longer allowed.
1 parent 6407307 commit 41f262d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/type/definition.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -562,10 +562,9 @@ export interface GraphQLScalarTypeExtensions {
562562
* Scalars (or Enums) and are defined with a name and a series of functions
563563
* used to parse input from ast or variables and to ensure validity.
564564
*
565-
* If a type's serialize function does not return a value (i.e. it returns
565+
* If a type's serialize function returns `null` or does not return a value (i.e. it returns
566566
* `undefined`) then an error will be raised and a `null` value will be returned
567-
* in the response. If the serialize function returns `null`, then no error will
568-
* be included in the response.
567+
* in the response.
569568
*
570569
* Example:
571570
*

0 commit comments

Comments
 (0)