Skip to content

Commit 56e8f5d

Browse files
authored
Document specifiedByURL
1 parent cbb7de9 commit 56e8f5d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

website/pages/type.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,10 @@ functions used to ensure validity.
214214
```js
215215
const OddType = new GraphQLScalarType({
216216
name: 'Odd',
217+
// Can be used to link to a specification
218+
// for this scalar, for instance the JSON
219+
// specification.
220+
specifiedByURL: '',
217221
description:
218222
'This custom scalar will only return a value if the passed in value is an odd integer, when it's not it will return null.'
219223
serialize: (outputValue) => {

0 commit comments

Comments
 (0)